Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class ApcuRepository extends SimpleRepository |
||
8 | { |
||
9 | /** |
||
10 | * {@inheritdoc} |
||
11 | */ |
||
12 | 6 | public function flush(): bool |
|
13 | { |
||
14 | 6 | return apcu_clear_cache(); |
|
15 | } |
||
16 | |||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | */ |
||
20 | 6 | protected function retrieve(string $key): mixed |
|
21 | { |
||
22 | 6 | return apcu_fetch($key); |
|
23 | } |
||
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | 6 | protected function store(string $key, Collection $collection): bool |
|
31 | } |
||
32 | } |
||
33 |