1 | <?php |
||
19 | class DoctrineCacheAdapter implements CacheItemPoolInterface |
||
20 | { |
||
21 | /** @var CacheProvider */ |
||
22 | private $provider; |
||
23 | |||
24 | /** @var array|CacheItemInterface[] */ |
||
25 | private $deferred = []; |
||
26 | |||
27 | 12 | public function __construct(CacheProvider $provider) |
|
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | 5 | public function getItem($key) |
|
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | 3 | public function getItems(array $keys = []) |
|
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | 1 | public function clear() |
|
75 | |||
76 | /** |
||
77 | * {@inheritdoc} |
||
78 | */ |
||
79 | 1 | public function deleteItems(array $keys) |
|
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | */ |
||
93 | 2 | public function save(CacheItemInterface $item) |
|
99 | |||
100 | /** |
||
101 | * {@inheritdoc} |
||
102 | */ |
||
103 | 3 | public function saveDeferred(CacheItemInterface $item) |
|
109 | |||
110 | /** |
||
111 | * {@inheritdoc} |
||
112 | */ |
||
113 | 2 | public function commit() |
|
126 | |||
127 | 4 | private function doSave(CacheItemInterface $item) |
|
138 | } |
||
139 |