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 | 1 | public function __construct(CacheItemPoolInterface $pool) |
|
31 | |||
32 | /** |
||
33 | * @inheritDoc |
||
34 | */ |
||
35 | public function delete(string $key): bool |
||
39 | |||
40 | /** |
||
41 | * @inheritDoc |
||
42 | */ |
||
43 | public function get(string $key) |
||
47 | |||
48 | /** |
||
49 | * @inheritDoc |
||
50 | */ |
||
51 | public function has(string $key): bool |
||
55 | |||
56 | /** |
||
57 | * @inheritDoc |
||
58 | */ |
||
59 | public function put(string $key, $value, $expires): bool |
||
71 | |||
72 | /** |
||
73 | * @inheritDoc |
||
74 | */ |
||
75 | public function set(string $key, $value): bool |
||
79 | |||
80 | } |
||
81 |