Added MapCacheLRU::getAllKeys() method
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 25 Dec 2014 22:02:50 +0000 (14:02 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 25 Dec 2014 22:02:50 +0000 (14:02 -0800)
Change-Id: Idc9155bb55d37b083a6c1124721b74d4910ccec5

includes/libs/MapCacheLRU.php

index 2a7ee2a..0b6db32 100644 (file)
@@ -94,6 +94,14 @@ class MapCacheLRU {
                }
        }
 
+       /**
+        * @return array
+        * @since 1.25
+        */
+       public function getAllKeys() {
+               return array_keys( $this->cache );
+       }
+
        /**
         * Clear one or several cache entries, or all cache entries
         *