Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed3ff71
)
MDL-63050 cachestore_redis: Update hExists to check empty
author
Andrew Nicols
<andrew@nicols.co.uk>
Thu, 2 Aug 2018 02:59:53 +0000
(10:59 +0800)
committer
Andrew Nicols
<andrew@nicols.co.uk>
Thu, 2 Aug 2018 02:59:53 +0000
(10:59 +0800)
cache/stores/redis/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/cache/stores/redis/lib.php
b/cache/stores/redis/lib.php
index
bcf56fd
..
83a5889
100644
(file)
--- a/
cache/stores/redis/lib.php
+++ b/
cache/stores/redis/lib.php
@@
-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)
);
}
/**