1 | <?php |
||
7 | class InMemoryCache implements CacheInterface |
||
8 | { |
||
9 | protected $data = []; |
||
10 | protected $isFresh = false; |
||
11 | |||
12 | /** |
||
13 | * {@inheritdoc} |
||
14 | */ |
||
15 | 12 | public function save($name, $url) |
|
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | 10 | public function has($name) |
|
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | 10 | public function keys() |
|
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | 6 | public function get($name) |
|
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | 4 | public function remove($name) |
|
66 | |||
67 | /** |
||
68 | * {@inheritdoc} |
||
69 | */ |
||
70 | 6 | public function isFresh() |
|
74 | } |
||
75 |