diff --git a/src/CacheBridge.php b/src/CacheBridge.php index 9c05553..3669ad4 100644 --- a/src/CacheBridge.php +++ b/src/CacheBridge.php @@ -49,6 +49,10 @@ public function contains($id) */ public function save($id, $data, $lifeTime = 0) { + if ($lifeTime == 0) { + return Cache::forever($id, $data); + } + return Cache::put($id, $data, $lifeTime / 60); }