Skip to content

Commit

Permalink
[MemcachedCache] loadData now returns null instead of false (#1592)
Browse files Browse the repository at this point in the history
FileCache and SQLiteCache returns null on cache miss. This is important if using strict comparing (for example when using "===")
  • Loading branch information
em92 authored Jun 8, 2020
1 parent 124631d commit e4c4ae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caches/MemcachedCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function loadData(){
if ($this->data) return $this->data;
$result = $this->conn->get($this->getCacheKey());
if ($result === false) {
return false;
return null;
}

$this->time = $result['time'];
Expand Down

0 comments on commit e4c4ae8

Please sign in to comment.