Skip to content

Commit

Permalink
Added rememberForever method to the Cache contract
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar committed Nov 14, 2023
1 parent 3e0b400 commit b308135
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Cache/Store.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit b308135

Please sign in to comment.