| 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 | 37 | public function fetch($key) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @param string $key |
||
| 34 | * @param CacheEntry $data |
||
| 35 | * |
||
| 36 | * @return bool |
||
| 37 | */ |
||
| 38 | 33 | public function save($key, CacheEntry $data) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @param string $key |
||
| 47 | * |
||
| 48 | * @return bool |
||
| 49 | */ |
||
| 50 | public function delete($key) |
||
| 60 | } |
||
| 61 |