Skip to content

Commit 8ece48c

Browse files
committed
fix prefix duplication
1 parent 2366904 commit 8ece48c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Redis.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ public function deleteMultiple(array $keys)
129129
public function clear()
130130
{
131131
return $this->client->keys($this->prefix . '*')->then(function (array $keys) {
132+
$keys = preg_replace('|^' . preg_quote($this->prefix) . '|', '', $keys);
132133
return $this->deleteMultiple($keys);
133134
});
134135
}

0 commit comments

Comments
 (0)