1 | <?php |
||
12 | class CacheHelper implements CacheHelperInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var CacheItemPoolInterface |
||
16 | */ |
||
17 | private $cache; |
||
18 | |||
19 | /** |
||
20 | * @var int |
||
21 | */ |
||
22 | private $cacheExpireAt; |
||
23 | |||
24 | public function __construct(CacheItemPoolInterface $cache, int $cacheExpireAt) |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | public function invalidateCache(string $cacheId) : void |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function save(string $cacheId, $entry) : void |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function delete(string $cacheId) : void |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function get(string $cacheId) |
||
69 | } |