Total Complexity | 6 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | trait ClusterPoolTrait |
||
23 | { |
||
24 | protected function driverCheck(): bool |
||
27 | } |
||
28 | |||
29 | protected function driverConnect(): bool |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @param ExtendedCacheItemInterface $item |
||
36 | * @return ?array<string, mixed> |
||
37 | */ |
||
38 | protected function driverRead(ExtendedCacheItemInterface $item): ?array |
||
39 | { |
||
40 | return null; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @param ExtendedCacheItemInterface $item |
||
45 | * @return bool |
||
46 | */ |
||
47 | protected function driverWrite(ExtendedCacheItemInterface $item): bool |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @param string $key |
||
54 | * @param string $encodedKey |
||
55 | * @return bool |
||
56 | */ |
||
57 | protected function driverDelete(string $key, string $encodedKey): bool |
||
58 | { |
||
59 | return true; |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * @return bool |
||
64 | */ |
||
65 | protected function driverClear(): bool |
||
68 | } |
||
69 | } |
||
70 |