Add oldRev parameter to DiffRevisionTools hook
[lhc/web/wiklou.git] / includes / cache / MapCacheLRU.php
index 26d3ec4..8349f88 100644 (file)
@@ -67,13 +67,22 @@ class MapCacheLRU {
                $this->cache[$key] = $value;
        }
 
+       /**
+        * Check if a key exists
+        *
+        * @param $key string
+        * @return bool
+        */
+       public function has( $key ) {
+               return isset( $this->cache[$key] );
+       }
+
        /**
         * Get the value for a key.
         * This returns null if the key is not set.
         * If the item is already set, it will be pushed to the top of the cache.
         *
         * @param $key string
-        * @param $prop string
         * @return mixed
         */
        public function get( $key ) {