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.
2 parents 2366904 + 8ece48c commit 0c62bccCopy full SHA for 0c62bcc
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