1 | <?php |
||
8 | class APCUCache implements CacheInterface |
||
9 | { |
||
10 | const PSR16_RESERVED_CHARACTERS = ['{','}','(',')','/','@',':']; |
||
11 | |||
12 | /** |
||
13 | * {@inheritDoc} |
||
14 | */ |
||
15 | public function get($key, $default = null) |
||
21 | |||
22 | /** |
||
23 | * {@inheritDoc} |
||
24 | */ |
||
25 | public function set($key, $value, $ttl = null) |
||
30 | |||
31 | 3 | /** |
|
32 | * {@inheritDoc} |
||
33 | 3 | */ |
|
34 | public function delete($key) |
||
39 | |||
40 | /** |
||
41 | * {@inheritDoc} |
||
42 | 1 | */ |
|
43 | public function clear() |
||
47 | /** |
||
48 | * {@inheritDoc} |
||
49 | */ |
||
50 | public function getMultiple($keys, $default = null) |
||
58 | |||
59 | /** |
||
60 | * {@inheritDoc} |
||
61 | */ |
||
62 | 1 | public function setMultiple($values, $ttl = null) |
|
70 | |||
71 | /** |
||
72 | * {@inheritDoc} |
||
73 | */ |
||
74 | public function deleteMultiple($keys) |
||
83 | |||
84 | public function increment($key, $step = 1) |
||
89 | 1 | ||
90 | 1 | public function decrement($key, $step = 1) |
|
95 | |||
96 | /** |
||
97 | * {@inheritDoc} |
||
98 | */ |
||
99 | public function has($key) { |
||
103 | 1 | ||
104 | private function checkReservedCharacters($key) |
||
113 | } |