From b308135ec0a023ec38ae7ce2e45b9a996b6d54f2 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Tue, 14 Nov 2023 23:01:03 +0300 Subject: [PATCH] Added `rememberForever` method to the Cache contract --- src/Cache/Store.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Cache/Store.php b/src/Cache/Store.php index 8d1fff7..8709123 100644 --- a/src/Cache/Store.php +++ b/src/Cache/Store.php @@ -40,6 +40,11 @@ public function put(string $key, $value, int $seconds); */ public function remember(string $key, $value, int $seconds); + /** + * Store an item forever, regardless of TTL. + */ + public function rememberForever(string $key, $value); + /** * Remove an item from the cache. */