1 | <?php |
||
22 | class Memcached extends AbstractCacheItemPool |
||
23 | { |
||
24 | /** |
||
25 | * The Memcached driver |
||
26 | * |
||
27 | * @var \Memcached |
||
28 | * @since 1.0 |
||
29 | */ |
||
30 | private $driver; |
||
31 | |||
32 | /** |
||
33 | * Constructor. |
||
34 | * |
||
35 | * @param \Memcached $memcached The Memcached driver being used for this pool |
||
36 | * @param array|\ArrayAccess $options An options array, or an object that implements \ArrayAccess |
||
37 | * |
||
38 | * @since 1.0 |
||
39 | */ |
||
40 | 12 | public function __construct(\Memcached $memcached, $options = []) |
|
47 | |||
48 | /** |
||
49 | * This will wipe out the entire cache's keys |
||
50 | * |
||
51 | * @return boolean The result of the clear operation. |
||
52 | * |
||
53 | * @since 1.0 |
||
54 | */ |
||
55 | 12 | public function clear() |
|
59 | |||
60 | /** |
||
61 | * Method to get a storage entry value from a key. |
||
62 | * |
||
63 | * @param string $key The storage entry identifier. |
||
64 | * |
||
65 | * @return CacheItemInterface |
||
66 | * |
||
67 | * @since 1.0 |
||
68 | */ |
||
69 | 4 | public function getItem($key) |
|
82 | |||
83 | /** |
||
84 | * Returns a traversable set of cache items. |
||
85 | * |
||
86 | * @param array $keys A list of keys that can obtained in a single operation. |
||
87 | * |
||
88 | * @return CacheItemInterface[] An associative array of CacheItemInterface objects keyed on the cache key. |
||
89 | * |
||
90 | * @since __DEPLOY_VERSION__ |
||
91 | */ |
||
92 | 1 | public function getItems(array $keys = []) |
|
112 | |||
113 | /** |
||
114 | * Method to remove a storage entry for a key. |
||
115 | * |
||
116 | * @param string $key The storage entry identifier. |
||
117 | * |
||
118 | * @return boolean |
||
119 | * |
||
120 | * @since 1.0 |
||
121 | * @throws RuntimeException |
||
122 | */ |
||
123 | 1 | public function deleteItem($key) |
|
140 | |||
141 | /** |
||
142 | * Removes multiple items from the pool. |
||
143 | * |
||
144 | * @param array $keys An array of keys that should be removed from the pool. |
||
145 | * |
||
146 | * @return boolean |
||
147 | * |
||
148 | * @since __DEPLOY_VERSION__ |
||
149 | */ |
||
150 | 1 | public function deleteItems(array $keys) |
|
174 | |||
175 | /** |
||
176 | * Persists a cache item immediately. |
||
177 | * |
||
178 | * @param CacheItemInterface $item The cache item to save. |
||
179 | * |
||
180 | * @return boolean |
||
181 | * |
||
182 | * @since __DEPLOY_VERSION__ |
||
183 | */ |
||
184 | 9 | public function save(CacheItemInterface $item) |
|
199 | |||
200 | /** |
||
201 | * Method to determine whether a storage entry has been set for a key. |
||
202 | * |
||
203 | * @param string $key The storage entry identifier. |
||
204 | * |
||
205 | * @return boolean |
||
206 | * |
||
207 | * @since 1.0 |
||
208 | */ |
||
209 | 4 | public function hasItem($key) |
|
215 | |||
216 | /** |
||
217 | * Test to see if the CacheItemPoolInterface is available |
||
218 | * |
||
219 | * @return boolean True on success, false otherwise |
||
220 | * |
||
221 | * @since __DEPLOY_VERSION__ |
||
222 | */ |
||
223 | 12 | public static function isSupported() |
|
231 | } |
||
232 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.