We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Cache::remember
1 parent 0a0f5a0 commit 66908f9Copy full SHA for 66908f9
src/Cache/Store.php
@@ -42,6 +42,19 @@ public function get(string $key, $default = null);
42
*/
43
public function put(string $key, $value, int $seconds);
44
45
+ /**
46
+ * Store an item in the cache for a given number of seconds.
47
+ *
48
+ * The `put` method alias to improve usability.
49
50
+ * @param string $key
51
+ * @param mixed $callback
52
+ * @param int $seconds
53
54
+ * @return mixed
55
+ */
56
+ public function remember(string $key, $value, int $seconds);
57
+
58
/**
59
* Remove an item from the cache.
60
*
0 commit comments