1 | <?php |
||
12 | class ZfCacheAdapter implements CacheStorageInterface { |
||
13 | |||
14 | /** |
||
15 | * |
||
16 | * @var StorageInterface |
||
17 | */ |
||
18 | private $storageCache = null; |
||
19 | |||
20 | /** |
||
21 | * @param StorageInterface $cache Zend Framework 2 cache adapter |
||
22 | */ |
||
23 | public function __construct(StorageInterface $cache) { |
||
26 | |||
27 | public function contains(RequestInterface $request) { |
||
31 | |||
32 | public function cache(RequestInterface $request, ResponseInterface $response) { |
||
35 | |||
36 | public function delete(RequestInterface $request) { |
||
39 | |||
40 | public function fetch(RequestInterface $request) { |
||
56 | |||
57 | public function purge($url) { |
||
61 | |||
62 | private function buildKey(RequestInterface $request) { |
||
65 | } |
||
66 | |||
68 |