From eddb477658787f23175135d986b267a291bdde43 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 --- ApcuCachePool.php | 12 ++++++++++++ composer.json | 6 +++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/ApcuCachePool.php b/ApcuCachePool.php index 67cba0b..a8b9510 100644 --- a/ApcuCachePool.php +++ b/ApcuCachePool.php @@ -19,6 +19,9 @@ */ class ApcuCachePool extends AbstractCachePool { + /** + * {@inheritdoc} + */ protected function fetchObjectFromCache($key) { $success = false; @@ -27,11 +30,17 @@ protected function fetchObjectFromCache($key) return [$success, $data, []]; } + /** + * {@inheritdoc} + */ protected function clearAllObjectsFromCache() { return apcu_clear_cache(); } + /** + * {@inheritdoc} + */ protected function clearOneObjectFromCache($key) { apcu_delete($key); @@ -39,6 +48,9 @@ protected function clearOneObjectFromCache($key) return true; } + /** + * {@inheritdoc} + */ protected function storeItemInCache(CacheItemInterface $item, $ttl) { if ($ttl < 0) { diff --git a/composer.json b/composer.json index 565bd0f..15eb8f0 100644 --- a/composer.json +++ b/composer.json @@ -27,12 +27,12 @@ "php": "^5.5|^7.0", "ext-apcu": "*", "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"