| 1 | <?php declare(strict_types = 1); |
||
| 14 | final class Cache implements CacheContract |
||
| 15 | { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var CacheItemPoolInterface |
||
| 19 | */ |
||
| 20 | private $pool; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Repository constructor. |
||
| 24 | * |
||
| 25 | * @param CacheItemPoolInterface $pool |
||
| 26 | */ |
||
| 27 | 6 | public function __construct(CacheItemPoolInterface $pool) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @inheritDoc |
||
| 34 | */ |
||
| 35 | 1 | public function delete(string $key): bool |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @inheritDoc |
||
| 42 | */ |
||
| 43 | 1 | public function get(string $key) |
|
| 47 | |||
| 48 | /** |
||
| 49 | * @inheritDoc |
||
| 50 | */ |
||
| 51 | 1 | public function has(string $key): bool |
|
| 55 | |||
| 56 | /** |
||
| 57 | * @inheritDoc |
||
| 58 | */ |
||
| 59 | 4 | public function put(string $key, $value, $expires): bool |
|
| 71 | |||
| 72 | /** |
||
| 73 | * @inheritDoc |
||
| 74 | */ |
||
| 75 | 1 | public function set(string $key, $value): bool |
|
| 79 | |||
| 80 | } |
||
| 81 |