From 61972427c6f9fb0825f7524dbb546aedf570242c Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Tue, 23 Feb 2016 09:29:02 +0100 Subject: [PATCH] Tagging bugfix and updated tests to ^0.9 --- MemcacheCachePool.php | 15 +++++++++++++++ composer.json | 6 +++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/MemcacheCachePool.php b/MemcacheCachePool.php index 4864e49..8d85d63 100644 --- a/MemcacheCachePool.php +++ b/MemcacheCachePool.php @@ -22,11 +22,17 @@ class MemcacheCachePool extends AbstractCachePool */ private $cache; + /** + * @param Memcache $cache + */ public function __construct(Memcache $cache) { $this->cache = $cache; } + /** + * {@inheritdoc} + */ protected function fetchObjectFromCache($key) { if (false === $result = unserialize($this->cache->get($key))) { @@ -36,11 +42,17 @@ protected function fetchObjectFromCache($key) return $result; } + /** + * {@inheritdoc} + */ protected function clearAllObjectsFromCache() { return $this->cache->flush(); } + /** + * {@inheritdoc} + */ protected function clearOneObjectFromCache($key) { $this->cache->delete($key); @@ -48,6 +60,9 @@ protected function clearOneObjectFromCache($key) return true; } + /** + * {@inheritdoc} + */ protected function storeItemInCache(CacheItemInterface $item, $ttl) { $data = serialize([true, $item->get(), []]); diff --git a/composer.json b/composer.json index 16d60a7..c59c7e7 100644 --- a/composer.json +++ b/composer.json @@ -27,12 +27,12 @@ "php": "^5.5", "ext-memcache": "*", "psr/cache": "^1.0", - "cache/adapter-common": "^0.2", - "cache/taggable-cache": "^0.3" + "cache/adapter-common": "^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"