We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2366904 commit 8ece48cCopy full SHA for 8ece48c
src/Redis.php
@@ -129,6 +129,7 @@ public function deleteMultiple(array $keys)
129
public function clear()
130
{
131
return $this->client->keys($this->prefix . '*')->then(function (array $keys) {
132
+ $keys = preg_replace('|^' . preg_quote($this->prefix) . '|', '', $keys);
133
return $this->deleteMultiple($keys);
134
});
135
}
0 commit comments