Skip to content

Commit

Permalink
Update Store.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Helldar authored Nov 12, 2021
1 parent a816abb commit a061044
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Cache/Store.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a061044

Please sign in to comment.