diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-03-23 12:27:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-23 12:27:51 +0100 |
commit | a5f05dd4a915bd7340b0b8f1c16e4c281ff04e56 (patch) | |
tree | 720dbd1c8383815035a43a8c45ec5960686de962 /lib/private | |
parent | cd045ded821d9b8e5e380ff5f453482d7ef2cd57 (diff) | |
parent | c81ea3aa98ce9730dfddd78ef6dfc16581f978f8 (diff) | |
download | nextcloud-server-a5f05dd4a915bd7340b0b8f1c16e4c281ff04e56.tar.gz nextcloud-server-a5f05dd4a915bd7340b0b8f1c16e4c281ff04e56.zip |
Merge pull request #37351 from nextcloud/del-unlink
Move from DEL to UNLINK
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Memcache/Redis.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Memcache/Redis.php b/lib/private/Memcache/Redis.php index f4094e0bef6..b6f96fffba4 100644 --- a/lib/private/Memcache/Redis.php +++ b/lib/private/Memcache/Redis.php @@ -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; @@ -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; } |