[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:
Eugene Molotov 2020-06-08 14:27:19 +05:00 committed by GitHub
parent 124631df73
commit e4c4ae8245
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'];