Total Complexity | 8 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class Cache implements Flushable |
||
10 | { |
||
11 | /** |
||
12 | * Flush all MemberCacheFlusher services. |
||
13 | */ |
||
14 | public static function flush() |
||
20 | } |
||
21 | } |
||
22 | |||
23 | public function getCache() |
||
26 | } |
||
27 | |||
28 | public function getCacheValues($cacheName): array |
||
29 | { |
||
30 | $cacheName = $this->cleanCacheName($cacheName); |
||
31 | $cache = $this->getCache(); |
||
32 | $array = $cache->has($cacheName) ? unserialize($cache->get($cacheName)) : []; |
||
|
|||
33 | |||
34 | return $cache->has($cacheName) ? unserialize($cache->get($cacheName)) : []; |
||
35 | } |
||
36 | |||
37 | public function setCacheValues($cacheName, array $array): self |
||
44 | } |
||
45 | |||
46 | public function cleanCacheName(string $string) |
||
49 | } |
||
50 | } |
||
51 |