]> source.dussan.org Git - nextcloud-server.git/commitdiff
Move from DEL to UNLINK
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>
Wed, 22 Mar 2023 16:10:05 +0000 (17:10 +0100)
committerGitHub <noreply@github.com>
Wed, 22 Mar 2023 16:10:05 +0000 (17:10 +0100)
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
lib/private/Memcache/Redis.php

index f4094e0bef620a15007d2f03bc2dd223a8c43cdc..aafa52a4409dc0d2c7eb66d60ebeba4d6a282dfd 100644 (file)
@@ -74,7 +74,7 @@ class Redis extends Cache implements IMemcacheTTL {
        }
 
        public function remove($key) {
-               if ($this->getCache()->del($this->getPrefix() . $key)) {
+               if ($this->getCache()->unlink($this->getPrefix() . $key)) {
                        return true;
                } else {
                        return false;
@@ -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()->del($keys);
+               $deleted = $this->getCache()->unlink($keys);
 
                return (is_array($keys) && (count($keys) === $deleted));
        }
@@ -170,7 +170,7 @@ class Redis extends Cache implements IMemcacheTTL {
                $this->getCache()->watch($this->getPrefix() . $key);
                if ($this->get($key) === $old) {
                        $result = $this->getCache()->multi()
-                               ->del($this->getPrefix() . $key)
+                               ->unlink($this->getPrefix() . $key)
                                ->exec();
                        return $result !== false;
                }