Fix RedisCluster

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
Git'Fellow 2023-03-22 17:19:07 +01:00 committed by GitHub
parent fab390f884
commit c81ea3aa98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,7 +84,7 @@ class Redis extends Cache implements IMemcacheTTL {
public function clear($prefix = '') {
$prefix = $this->getPrefix() . $prefix . '*';
$keys = $this->getCache()->keys($prefix);
$deleted = $this->getCache()->unlink($keys);
$deleted = $this->getCache()->del($keys);
return (is_array($keys) && (count($keys) === $deleted));
}