1 | <?php |
||
19 | class Memcached implements MemcachedClient |
||
20 | { |
||
21 | /** |
||
22 | * @var \Memcached |
||
23 | */ |
||
24 | private $memcached; |
||
25 | |||
26 | /** |
||
27 | * @param $persistentId |
||
28 | * @param array $connections |
||
29 | */ |
||
30 | public function __construct($persistentId, array $connections) |
||
47 | |||
48 | |||
49 | /** |
||
50 | * @throws \Exception |
||
51 | * @codeCoverageIgnore |
||
52 | */ |
||
53 | private function isMemcachedExtensionAvailable() |
||
59 | |||
60 | /** |
||
61 | * @param $key |
||
62 | * |
||
63 | * @return mixed |
||
64 | */ |
||
65 | public function get($key) |
||
69 | |||
70 | /** |
||
71 | * @param $key |
||
72 | * @param $value |
||
73 | * |
||
74 | * @return mixed |
||
75 | */ |
||
76 | public function set($key, $value) |
||
80 | |||
81 | /** |
||
82 | * @param $key |
||
83 | * @param $expiration |
||
84 | */ |
||
85 | public function touch($key, $expiration) |
||
89 | |||
90 | /** |
||
91 | * @param $key |
||
92 | * |
||
93 | * @return mixed |
||
94 | */ |
||
95 | public function delete($key) |
||
99 | |||
100 | /** |
||
101 | * @return mixed |
||
102 | */ |
||
103 | public function getStats() |
||
107 | |||
108 | /** |
||
109 | * @return mixed |
||
110 | */ |
||
111 | public function flush() |
||
115 | } |
||
116 |