| 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) |
||
| 66 | |||
| 67 | /** |
||
| 68 | * {@inheritdoc} |
||
| 69 | */ |
||
| 70 | public function delete($key) |
||
| 74 | } |
||
| 75 |