File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,17 @@ class MemcacheCachePool extends AbstractCachePool
2222 */
2323 private $ cache ;
2424
25+ /**
26+ * @param Memcache $cache
27+ */
2528 public function __construct (Memcache $ cache )
2629 {
2730 $ this ->cache = $ cache ;
2831 }
2932
33+ /**
34+ * {@inheritdoc}
35+ */
3036 protected function fetchObjectFromCache ($ key )
3137 {
3238 if (false === $ result = unserialize ($ this ->cache ->get ($ key ))) {
@@ -36,18 +42,27 @@ protected function fetchObjectFromCache($key)
3642 return $ result ;
3743 }
3844
45+ /**
46+ * {@inheritdoc}
47+ */
3948 protected function clearAllObjectsFromCache ()
4049 {
4150 return $ this ->cache ->flush ();
4251 }
4352
53+ /**
54+ * {@inheritdoc}
55+ */
4456 protected function clearOneObjectFromCache ($ key )
4557 {
4658 $ this ->cache ->delete ($ key );
4759
4860 return true ;
4961 }
5062
63+ /**
64+ * {@inheritdoc}
65+ */
5166 protected function storeItemInCache (CacheItemInterface $ item , $ ttl )
5267 {
5368 $ data = serialize ([true , $ item ->get (), []]);
Original file line number Diff line number Diff line change 2727 "php" : " ^5.5" ,
2828 "ext-memcache" : " *" ,
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"
You can’t perform that action at this time.
0 commit comments