aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Memcache
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2023-03-22 17:10:05 +0100
committerGitHub <noreply@github.com>2023-03-22 17:10:05 +0100
commitfab390f884719b5904fc089b227de55cc0d136b1 (patch)
tree96d3a6f0f3aa3c57ae9f5b6ec19f3956aae44489 /lib/private/Memcache
parent7fee4b7867728208f2244753b19874b7830942bf (diff)
downloadnextcloud-server-fab390f884719b5904fc089b227de55cc0d136b1.tar.gz
nextcloud-server-fab390f884719b5904fc089b227de55cc0d136b1.zip
Move from DEL to UNLINK
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Diffstat (limited to 'lib/private/Memcache')
-rw-r--r--lib/private/Memcache/Redis.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Memcache/Redis.php b/lib/private/Memcache/Redis.php
index f4094e0bef6..aafa52a4409 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;
@@ -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;
}