1 | <?php |
||
10 | class VolatileRuntimeStorage implements CacheStorageInterface |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * @var CacheEntry[] |
||
15 | */ |
||
16 | protected $cache = []; |
||
17 | |||
18 | /** |
||
19 | * @param string $key |
||
20 | * |
||
21 | * @return CacheEntry|null the data or false |
||
22 | */ |
||
23 | 42 | public function fetch($key) |
|
31 | |||
32 | /** |
||
33 | * @param string $key |
||
34 | * @param CacheEntry $data |
||
35 | * |
||
36 | * @return bool |
||
37 | */ |
||
38 | 38 | public function save($key, CacheEntry $data) |
|
44 | |||
45 | /** |
||
46 | * @param string $key |
||
47 | * |
||
48 | * @return bool |
||
49 | */ |
||
50 | 5 | public function delete($key) |
|
60 | } |
||
61 |