1 | <?php |
||
15 | class DoctrineCacheStorageAdapter implements StorageInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var Cache |
||
19 | */ |
||
20 | private $cache; |
||
21 | |||
22 | /** |
||
23 | * @param Cache $cache |
||
24 | */ |
||
25 | public function __construct(Cache $cache) |
||
29 | |||
30 | /** |
||
31 | * @param string $key |
||
32 | * @return mixed|null Null if the value is not found |
||
33 | */ |
||
34 | public function get($key) |
||
38 | |||
39 | /** |
||
40 | * @param string $key |
||
41 | * @param mixed $value |
||
42 | */ |
||
43 | public function set($key, $value) |
||
47 | |||
48 | /** |
||
49 | * @param string $key |
||
50 | */ |
||
51 | public function remove($key) |
||
55 | } |
||
56 |