Skip to content

Commit ef812fc

Browse files
return cached data
1 parent cf42632 commit ef812fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Cache/RedisCache.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ public function cache()
8383
{
8484
$this->setTime();
8585

86-
return Redis::setex($this->key, $this->time, $this->serialize($this->data));
86+
Redis::setex($this->key, $this->time, $this->serialize($this->data));
87+
88+
return $this->data;
8789
}
8890

8991
/**

0 commit comments

Comments
 (0)