Skip to content

Commit 00d0c81

Browse files
committed
Tagging bugfix and updated tests to ^0.9
1 parent ecaaa2e commit 00d0c81

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

ArrayCachePool.php

+15
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ protected function storeItemInCache(CacheItemInterface $item, $ttl)
156156
return true;
157157
}
158158

159+
/**
160+
* {@inheritdoc}
161+
*/
159162
public function save(CacheItemInterface $item)
160163
{
161164
if ($item instanceof TaggableItemInterface) {
@@ -175,6 +178,9 @@ protected function getValueFormStore($key)
175178
}
176179
}
177180

181+
/**
182+
* {@inheritdoc}
183+
*/
178184
protected function getList($name)
179185
{
180186
if (!isset($this->cache[$name])) {
@@ -184,18 +190,27 @@ protected function getList($name)
184190
return $this->cache[$name];
185191
}
186192

193+
/**
194+
* {@inheritdoc}
195+
*/
187196
protected function removeList($name)
188197
{
189198
unset($this->cache[$name]);
190199

191200
return true;
192201
}
193202

203+
/**
204+
* {@inheritdoc}
205+
*/
194206
protected function appendListItem($name, $key)
195207
{
196208
$this->cache[$name][] = $key;
197209
}
198210

211+
/**
212+
* {@inheritdoc}
213+
*/
199214
protected function removeListItem($name, $key)
200215
{
201216
foreach ($this->cache[$name] as $i => $item) {

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@
2626
"require": {
2727
"php": "^5.5|^7.0",
2828
"psr/cache": "^1.0",
29-
"cache/adapter-common": "^0.2",
29+
"cache/adapter-common": "^0.3",
3030
"cache/hierarchical-cache": "^0.2",
31-
"cache/taggable-cache": "^0.3"
31+
"cache/taggable-cache": "^0.4"
3232
},
3333
"require-dev": {
3434
"phpunit/phpunit": "^4.0|^5.1",
35-
"cache/integration-tests": "0.9.0"
35+
"cache/integration-tests": "^0.9"
3636
},
3737
"provide": {
3838
"psr/cache-implementation": "^1.0"

0 commit comments

Comments
 (0)