Fixed handling of cache keys as empty results caused cache keys to exist. :(
[core.git] / inc / classes / interfaces / cache / class_Cacheable.php
index de4c30aeb7500e6b3b9cddf407313aee3937821d..d02c35a0ec909d6d74e0b22a79d2ed1d1d90628e 100644 (file)
@@ -25,10 +25,12 @@ interface Cacheable extends FrameworkInterface {
        /**
         * Does the specified offset exist in cache?
         *
-        * @param       $offset         The offset we are looking for
-        * @return      $exists         Whether the offset exists
+        * @param       $offset                 The offset we are looking for
+        * @param       $arrayElement   If type is array, then this element must be found
+        * @param       $minimumCount   If array element is found then this count must at least match
+        * @return      $exists                 Whether the offset exists
         */
-       function offsetExists($offset);
+       function offsetExists($offset, $arrayElement = NULL, $minimumCount = 0);
 
        /**
         * Setter for cache offset