[MemcachedCache] loadData now returns null instead of false (#1592)
FileCache and SQLiteCache returns null on cache miss. This is important if using strict comparing (for example when using "===")
This commit is contained in:
parent
124631df73
commit
e4c4ae8245
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ class MemcachedCache implements CacheInterface {
|
|||
if ($this->data) return $this->data;
|
||||
$result = $this->conn->get($this->getCacheKey());
|
||||
if ($result === false) {
|
||||
return false;
|
||||
return null;
|
||||
}
|
||||
|
||||
$this->time = $result['time'];
|
||||
|
|
Loading…
Reference in a new issue