From a06104467aafa913d5f040452b686d87f45762f1 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Sat, 13 Nov 2021 01:51:17 +0300 Subject: [PATCH] Update Store.php --- src/Cache/Store.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Cache/Store.php b/src/Cache/Store.php index e5b5d7a..4756589 100644 --- a/src/Cache/Store.php +++ b/src/Cache/Store.php @@ -25,22 +25,22 @@ interface Store * Retrieve an item from the cache by key. * * @param string $key - * @param mixed $default + * @param callable $default * * @return mixed */ - public function get(string $key, $default = null); + public function get(string $key, callable $default = null); /** * Store an item in the cache for a given number of seconds. * * @param string $key - * @param mixed $value + * @param callable $callback * @param int $seconds * * @return mixed */ - public function put(string $key, $value, int $seconds); + public function put(string $key, callable $callback, int $seconds); /** * Remove an item from the cache.