mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Merge branch 'MDL-63050-master' of git://github.com/andrewnicols/moodle
This commit is contained in:
commit
71926adb0d
2
cache/stores/redis/lib.php
vendored
2
cache/stores/redis/lib.php
vendored
@ -325,7 +325,7 @@ class cachestore_redis extends cache_store implements cache_is_key_aware, cache_
|
||||
* @return bool True if the key exists, false if it does not.
|
||||
*/
|
||||
public function has($key) {
|
||||
return $this->redis->hExists($this->hash, $key);
|
||||
return !empty($this->redis->hExists($this->hash, $key));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -396,7 +396,7 @@ class redis extends handler {
|
||||
}
|
||||
|
||||
try {
|
||||
return $this->connection->exists($sid);
|
||||
return !empty($this->connection->exists($sid));
|
||||
} catch (RedisException $e) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user