1 | <?php |
||
10 | class APCUCache implements CacheInterface |
||
11 | { |
||
12 | const PSR16_RESERVED_CHARACTERS = ['{','}','(',')','/','@',':']; |
||
13 | |||
14 | /** |
||
15 | * {@inheritDoc} |
||
16 | */ |
||
17 | 1 | public function get($key, $default = null) |
|
23 | |||
24 | /** |
||
25 | * {@inheritDoc} |
||
26 | */ |
||
27 | 5 | public function set($key, $value, $ttl = null) |
|
35 | |||
36 | /** |
||
37 | * {@inheritDoc} |
||
38 | */ |
||
39 | 1 | public function delete($key) |
|
44 | |||
45 | /** |
||
46 | * {@inheritDoc} |
||
47 | */ |
||
48 | 1 | public function clear() |
|
52 | /** |
||
53 | * {@inheritDoc} |
||
54 | */ |
||
55 | 1 | public function getMultiple($keys, $default = null) |
|
63 | |||
64 | /** |
||
65 | * {@inheritDoc} |
||
66 | */ |
||
67 | 1 | public function setMultiple($values, $ttl = null) |
|
78 | |||
79 | /** |
||
80 | * {@inheritDoc} |
||
81 | */ |
||
82 | 1 | public function deleteMultiple($keys) |
|
91 | |||
92 | 1 | public function increment($key, $step = 1) |
|
97 | |||
98 | 1 | public function decrement($key, $step = 1) |
|
103 | |||
104 | /** |
||
105 | * {@inheritDoc} |
||
106 | */ |
||
107 | 1 | public function has($key) |
|
112 | |||
113 | 6 | private function checkReservedCharacters($key) |
|
126 | } |
||
127 |