Skip to content

Commit

Permalink
MDL-63050 cachestore_redis: Update hExists to check empty
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Aug 2, 2018
1 parent ed3ff71 commit 31b02f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache/stores/redis/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public function instance_deleted() {
* @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));
}

/**
Expand Down

0 comments on commit 31b02f6

Please sign in to comment.