1 | <?php |
||
10 | class AdapterArray implements iAdapter |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | private static $values = array(); |
||
17 | |||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | private static $expired = array(); |
||
22 | |||
23 | /** |
||
24 | * @inheritdoc |
||
25 | */ |
||
26 | 6 | public function exists($key) |
|
32 | |||
33 | /** |
||
34 | * @inheritdoc |
||
35 | */ |
||
36 | 5 | public function get($key) |
|
40 | |||
41 | /** |
||
42 | * @inheritdoc |
||
43 | */ |
||
44 | public function installed() |
||
48 | |||
49 | /** |
||
50 | * @inheritdoc |
||
51 | */ |
||
52 | public function remove($key) |
||
64 | |||
65 | /** |
||
66 | * @inheritdoc |
||
67 | */ |
||
68 | public function removeAll() |
||
75 | |||
76 | /** |
||
77 | * @inheritdoc |
||
78 | */ |
||
79 | 3 | public function set($key, $value) |
|
85 | |||
86 | /** |
||
87 | * @inheritdoc |
||
88 | */ |
||
89 | 1 | public function setExpired($key, $value, $ttl) |
|
96 | |||
97 | /** |
||
98 | * Remove expired cache. |
||
99 | * |
||
100 | * @param string $key |
||
101 | * |
||
102 | * @return boolean |
||
103 | */ |
||
104 | 6 | private function removeExpired($key) |
|
126 | |||
127 | } |
||
128 |