Completed
Push — in-memory-cache ( 3245f0 )
by André
18:20
created
eZ/Publish/Core/Persistence/Cache/Adapter/InMemoryCacheAdapter.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -77,6 +77,9 @@
 block discarded – undo
77 77
         $this->ttl = $ttl;
78 78
     }
79 79
 
80
+    /**
81
+     * @param string $key
82
+     */
80 83
     public function getItem($key)
81 84
     {
82 85
         if ($items = $this->getValidInMemoryCacheItems([$key])) {
Please login to merge, or discard this patch.
Publish/Core/Persistence/Cache/Adapter/Tests/InMemoryCacheAdapterTest.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,8 +112,8 @@
 block discarded – undo
112 112
     }
113 113
 
114 114
     /**
115
-     * @param $key
116
-     * @param null $value If null the cache item will be assumed to be a cache miss here.
115
+     * @param string $key
116
+     * @param boolean $value If null the cache item will be assumed to be a cache miss here.
117 117
      * @param int $defaultLifetime
118 118
      *
119 119
      * @return CacheItem
Please login to merge, or discard this patch.