1 | <?php |
||
8 | class Stash implements HandlerInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var \Tedivm\StashBundle\Service\CacheService |
||
12 | */ |
||
13 | protected $cacheService; |
||
14 | |||
15 | /** |
||
16 | * @var int |
||
17 | */ |
||
18 | protected $ttl; |
||
19 | |||
20 | /** |
||
21 | * Stash constructor. |
||
22 | * |
||
23 | * @param \Tedivm\StashBundle\Service\CacheService $cacheService |
||
24 | * @param int $ttl |
||
25 | */ |
||
26 | public function __construct(CacheService $cacheService, $ttl) |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | public function has($cacheKey) |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function get($cacheKey) |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | public function set($cacheKey, $data) |
||
71 | } |
||
72 |