mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #37351 from nextcloud/del-unlink
Move from DEL to UNLINK
This commit is contained in:
commit
a5f05dd4a9
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue