| Total Complexity | 4 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 66.67% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class MemcachedRepository extends SimpleRepository |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var Memcached |
||
| 12 | */ |
||
| 13 | protected $memcached; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * MemcachedRepository constructor. |
||
| 17 | * |
||
| 18 | * @param Memcached $memcached |
||
| 19 | */ |
||
| 20 | public function __construct(Memcached $memcached) |
||
| 21 | { |
||
| 22 | $this->memcached = $memcached; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | 6 | public function flush(): bool |
|
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | 6 | protected function retrieve(string $key) |
|
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | 6 | protected function store(string $key, Collection $collection): bool |
|
| 49 |