Skip to content

Commit 1a85898

Browse files
committed
Tagging bugfix and updated tests to ^0.9
1 parent 519b242 commit 1a85898

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

ApcCachePool.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
*/
2020
class ApcCachePool extends AbstractCachePool
2121
{
22+
/**
23+
* {@inheritdoc}
24+
*/
2225
protected function fetchObjectFromCache($key)
2326
{
2427
$success = false;
@@ -27,18 +30,27 @@ protected function fetchObjectFromCache($key)
2730
return [$success, $data, []];
2831
}
2932

33+
/**
34+
* {@inheritdoc}
35+
*/
3036
protected function clearAllObjectsFromCache()
3137
{
3238
return apc_clear_cache('user');
3339
}
3440

41+
/**
42+
* {@inheritdoc}
43+
*/
3544
protected function clearOneObjectFromCache($key)
3645
{
3746
apc_delete($key);
3847

3948
return true;
4049
}
4150

51+
/**
52+
* {@inheritdoc}
53+
*/
4254
protected function storeItemInCache(CacheItemInterface $item, $ttl)
4355
{
4456
if ($ttl < 0) {

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
"php": "^5.5|^7.0",
2828
"ext-apc": "*",
2929
"psr/cache": "^1.0",
30-
"cache/adapter-common": "^0.2",
31-
"cache/taggable-cache": "^0.3"
30+
"cache/adapter-common": "^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)