Skip to content

Commit

Permalink
Tagging bugfix and updated tests to ^0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm committed Feb 25, 2016
1 parent ecaaa2e commit 00d0c81
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
15 changes: 15 additions & 0 deletions ArrayCachePool.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ protected function storeItemInCache(CacheItemInterface $item, $ttl)
return true;
}

/**
* {@inheritdoc}
*/
public function save(CacheItemInterface $item)
{
if ($item instanceof TaggableItemInterface) {
Expand All @@ -175,6 +178,9 @@ protected function getValueFormStore($key)
}
}

/**
* {@inheritdoc}
*/
protected function getList($name)
{
if (!isset($this->cache[$name])) {
Expand All @@ -184,18 +190,27 @@ protected function getList($name)
return $this->cache[$name];
}

/**
* {@inheritdoc}
*/
protected function removeList($name)
{
unset($this->cache[$name]);

return true;
}

/**
* {@inheritdoc}
*/
protected function appendListItem($name, $key)
{
$this->cache[$name][] = $key;
}

/**
* {@inheritdoc}
*/
protected function removeListItem($name, $key)
{
foreach ($this->cache[$name] as $i => $item) {
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
"require": {
"php": "^5.5|^7.0",
"psr/cache": "^1.0",
"cache/adapter-common": "^0.2",
"cache/adapter-common": "^0.3",
"cache/hierarchical-cache": "^0.2",
"cache/taggable-cache": "^0.3"
"cache/taggable-cache": "^0.4"
},
"require-dev": {
"phpunit/phpunit": "^4.0|^5.1",
"cache/integration-tests": "0.9.0"
"cache/integration-tests": "^0.9"
},
"provide": {
"psr/cache-implementation": "^1.0"
Expand Down

0 comments on commit 00d0c81

Please sign in to comment.