mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #8512 from owncloud/fix-memcached-hasKey
Be more strict in checking the resultCode of memcached hasKey function * owncloud/fix-memcached-hasKey: Memcached hasKey should test for success, the get can fail for other reasons.
This commit is contained in:
commit
bd4d315d78
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ class Memcached extends Cache {
|
|||
|
||||
public function hasKey($key) {
|
||||
self::$cache->get($this->getNamespace() . $key);
|
||||
return self::$cache->getResultCode() !== \Memcached::RES_NOTFOUND;
|
||||
return self::$cache->getResultCode() === \Memcached::RES_SUCCESS;
|
||||
}
|
||||
|
||||
public function remove($key) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue