diff --git a/src/Storage/LaravelCacheStorage.php b/src/Storage/LaravelCacheStorage.php index 928869a5..3e3416d9 100644 --- a/src/Storage/LaravelCacheStorage.php +++ b/src/Storage/LaravelCacheStorage.php @@ -26,7 +26,7 @@ public function __construct(Cache $cache) public function fetch($key) { try { - $cache = unserialize($this->cache->get($key)); + $cache = unserialize($this->cache->get($key, '')); if ($cache instanceof CacheEntry) { return $cache; } @@ -70,7 +70,7 @@ public function delete($key) { return $this->cache->forget($key); } - + protected function getLifeTime(CacheEntry $data) { $version = app()->version();