Skip to content

Commit

Permalink
Set empty string as default value (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
herpaderpaldent authored Oct 2, 2022
1 parent 0a61532 commit 45ba0fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Storage/LaravelCacheStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -70,7 +70,7 @@ public function delete($key)
{
return $this->cache->forget($key);
}

protected function getLifeTime(CacheEntry $data)
{
$version = app()->version();
Expand Down

0 comments on commit 45ba0fe

Please sign in to comment.