1 | <?php |
||
8 | class LaravelCacheStorage implements CacheStorageInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var Cache |
||
12 | */ |
||
13 | protected $cache; |
||
14 | |||
15 | /** |
||
16 | * @param Cache $cache |
||
17 | */ |
||
18 | public function __construct(Cache $cache) |
||
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | public function fetch($key) |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | public function save($key, CacheEntry $data) |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function delete($key) |
||
73 | |||
74 | protected function getLifeTime(CacheEntry $data) |
||
84 | } |
||
85 |