]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Cache/ICacheDriver.php
Merge branch '2019.06-rc'
[friendica.git] / src / Core / Cache / ICacheDriver.php
index b77aa03c162de44abea89ac60415e735cc03d5e0..1188e51877f65e2fecc40ad36a68cf67b44d9209 100644 (file)
@@ -14,9 +14,11 @@ interface ICacheDriver
        /**
         * Lists all cache keys
         *
-        * @return array|null Null if it isn't supported by the cache driver
+        * @param string prefix optional a prefix to search
+        *
+        * @return array Empty if it isn't supported by the cache driver
         */
-       public function getAllKeys();
+       public function getAllKeys($prefix = null);
 
        /**
         * Fetches cached data according to the key
@@ -32,7 +34,7 @@ interface ICacheDriver
         *
         * @param string  $key      The cache key
         * @param mixed   $value    The value to store
-        * @param integer $ttl The cache lifespan, must be one of the Cache constants
+        * @param integer $ttl      The cache lifespan, must be one of the Cache constants
         *
         * @return bool
         */