Fix RedisCluster

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
pull/37351/head
Git'Fellow 1 year ago committed by GitHub
parent fab390f884
commit c81ea3aa98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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));
}

Loading…
Cancel
Save