1 | <?php |
||
13 | class ActOnAll implements ExtendedCacheItemPoolInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var array|\phpFastCache\Core\Pool\ExtendedCacheItemPoolInterface[] |
||
17 | */ |
||
18 | protected $instances = []; |
||
19 | |||
20 | /** |
||
21 | * ActOnAll constructor. |
||
22 | */ |
||
23 | public function __construct() |
||
27 | |||
28 | /** |
||
29 | * @return \Closure |
||
30 | */ |
||
31 | protected function getGenericCallback() |
||
56 | |||
57 | |||
58 | /** |
||
59 | * @param string $key |
||
60 | * @return mixed |
||
61 | */ |
||
62 | public function hasItem($key) |
||
67 | |||
68 | /** |
||
69 | * @return mixed |
||
70 | */ |
||
71 | public function clear() |
||
76 | |||
77 | /** |
||
78 | * @param string $key |
||
79 | * @return mixed |
||
80 | */ |
||
81 | public function deleteItem($key) |
||
86 | |||
87 | /** |
||
88 | * @param array $keys |
||
89 | * @return mixed |
||
90 | */ |
||
91 | public function deleteItems(array $keys) |
||
96 | |||
97 | /** |
||
98 | * @param \Psr\Cache\CacheItemInterface $item |
||
99 | * @return mixed |
||
100 | */ |
||
101 | public function save(CacheItemInterface $item) |
||
106 | |||
107 | /** |
||
108 | * @param \Psr\Cache\CacheItemInterface $item |
||
109 | * @return mixed |
||
110 | */ |
||
111 | public function saveDeferred(CacheItemInterface $item) |
||
116 | |||
117 | /** |
||
118 | * @return mixed |
||
119 | */ |
||
120 | public function commit() |
||
125 | |||
126 | /** |
||
127 | * @return mixed |
||
128 | */ |
||
129 | public function getConfig() |
||
134 | |||
135 | /** |
||
136 | * @return mixed |
||
137 | */ |
||
138 | public function getDriverName() |
||
143 | |||
144 | /** |
||
145 | * @param string $key |
||
146 | * @return mixed |
||
147 | */ |
||
148 | public function getItem($key) |
||
153 | |||
154 | /** |
||
155 | * @param array $keys |
||
156 | * @return mixed |
||
157 | */ |
||
158 | public function getItems(array $keys = []) |
||
163 | |||
164 | /** |
||
165 | * @param array $keys |
||
166 | * @param int $option |
||
167 | * @param int $depth |
||
168 | * @return mixed |
||
169 | */ |
||
170 | public function getItemsAsJsonString(array $keys = [], $option = 0, $depth = 512) |
||
175 | |||
176 | /** |
||
177 | * @param \Psr\Cache\CacheItemInterface $item |
||
178 | * @return mixed |
||
179 | */ |
||
180 | public function setItem(CacheItemInterface $item) |
||
185 | |||
186 | /** |
||
187 | * @return mixed |
||
188 | */ |
||
189 | public function clean() |
||
194 | |||
195 | /** |
||
196 | * @return mixed |
||
197 | */ |
||
198 | public function getStats() |
||
203 | |||
204 | /** |
||
205 | * @param string $tagName |
||
206 | * @return mixed |
||
207 | */ |
||
208 | public function getItemsByTag($tagName) |
||
213 | |||
214 | /** |
||
215 | * @param array $tagNames |
||
216 | * @return mixed |
||
217 | */ |
||
218 | public function getItemsByTags(array $tagNames) |
||
223 | |||
224 | /** |
||
225 | * @param array $tagNames |
||
226 | * @param int $option |
||
227 | * @param int $depth |
||
228 | * @return mixed |
||
229 | */ |
||
230 | public function getItemsByTagsAsJsonString(array $tagNames, $option = 0, $depth = 512) |
||
235 | |||
236 | /** |
||
237 | * @param string $tagName |
||
238 | * @return mixed |
||
239 | */ |
||
240 | public function deleteItemsByTag($tagName) |
||
245 | |||
246 | /** |
||
247 | * @param array $tagNames |
||
248 | * @return mixed |
||
249 | */ |
||
250 | public function deleteItemsByTags(array $tagNames) |
||
255 | |||
256 | /** |
||
257 | * @param string $tagName |
||
258 | * @param int $step |
||
259 | * @return mixed |
||
260 | */ |
||
261 | public function incrementItemsByTag($tagName, $step = 1) |
||
266 | |||
267 | /** |
||
268 | * @param array $tagNames |
||
269 | * @param int $step |
||
270 | * @return mixed |
||
271 | */ |
||
272 | public function incrementItemsByTags(array $tagNames, $step = 1) |
||
277 | |||
278 | /** |
||
279 | * @param string $tagName |
||
280 | * @param int $step |
||
281 | * @return mixed |
||
282 | */ |
||
283 | public function decrementItemsByTag($tagName, $step = 1) |
||
288 | |||
289 | /** |
||
290 | * @param array $tagNames |
||
291 | * @param int $step |
||
292 | * @return mixed |
||
293 | */ |
||
294 | public function decrementItemsByTags(array $tagNames, $step = 1) |
||
299 | |||
300 | /** |
||
301 | * @param string $tagName |
||
302 | * @param array|string $data |
||
303 | * @return mixed |
||
304 | */ |
||
305 | public function appendItemsByTag($tagName, $data) |
||
310 | |||
311 | /** |
||
312 | * @param array $tagNames |
||
313 | * @param array|string $data |
||
314 | * @return mixed |
||
315 | */ |
||
316 | public function appendItemsByTags(array $tagNames, $data) |
||
321 | |||
322 | /** |
||
323 | * @param string $tagName |
||
324 | * @param array|string $data |
||
325 | * @return mixed |
||
326 | */ |
||
327 | public function prependItemsByTag($tagName, $data) |
||
332 | |||
333 | /** |
||
334 | * @param array $tagNames |
||
335 | * @param array|string $data |
||
336 | * @return mixed |
||
337 | */ |
||
338 | public function prependItemsByTags(array $tagNames, $data) |
||
343 | |||
344 | /** |
||
345 | * @param \Psr\Cache\CacheItemInterface $item |
||
346 | * @return mixed |
||
347 | */ |
||
348 | public function detachItem(CacheItemInterface $item) |
||
353 | |||
354 | /** |
||
355 | * @return mixed |
||
356 | */ |
||
357 | public function detachAllItems() |
||
362 | |||
363 | /** |
||
364 | * @param \Psr\Cache\CacheItemInterface $item |
||
365 | * @return mixed |
||
366 | */ |
||
367 | public function attachItem(CacheItemInterface $item) |
||
372 | |||
373 | /** |
||
374 | * @param \Psr\Cache\CacheItemInterface $item |
||
375 | * @return mixed |
||
376 | */ |
||
377 | public function isAttached(CacheItemInterface $item) |
||
382 | |||
383 | /** |
||
384 | * @param \phpFastCache\EventManager $em |
||
385 | */ |
||
386 | public function setEventManager(EventManager $em) |
||
391 | } |