| 1 | <?php |
||
| 7 | class InMemoryCache implements CacheInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var array |
||
| 11 | */ |
||
| 12 | private $cache; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param string $key |
||
| 16 | * @param mixed $value |
||
| 17 | */ |
||
| 18 | public function set(string $key, $value) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $key |
||
| 25 | * |
||
| 26 | * @return boolean |
||
| 27 | */ |
||
| 28 | public function has(string $key) : bool |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $key |
||
| 35 | * |
||
| 36 | * @return mixed |
||
| 37 | */ |
||
| 38 | public function get(string $key) |
||
| 46 | } |
||
| 47 |