From de0f8dd20d00418470e29dea8b1066d8e3e8ea89 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Tue, 14 Nov 2023 23:22:21 +0300 Subject: [PATCH] Update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index de355b4..982100b 100644 --- a/README.md +++ b/README.md @@ -185,6 +185,11 @@ $cache->remember(static fn() => 'Some value'); $cache->remember('Some value'); // Contains cached `Some value` +$cache->rememberForever(static fn() => 'Some value'); +// or +$cache->rememberForever('Some value'); +// Contains cached `Some value` + $cache->get(); // Returns cached `Some value` @@ -216,6 +221,11 @@ $cache->remember(static fn() => $user); $cache->remember($user); // Contains cached `$user` +$cache->rememberForever(static fn() => $user); +// or +$cache->rememberForever($user); +// Contains cached `$user` + $cache->get(); // Returns User model