diff --git a/src/Redis.php b/src/Redis.php index 0319541..06f995c 100644 --- a/src/Redis.php +++ b/src/Redis.php @@ -129,6 +129,7 @@ public function deleteMultiple(array $keys) public function clear() { return $this->client->keys($this->prefix . '*')->then(function (array $keys) { + $keys = preg_replace('|^' . preg_quote($this->prefix) . '|', '', $keys); return $this->deleteMultiple($keys); }); }