From 6417abb728ef1987e581076df46a7ee27a4155a6 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 25 Dec 2014 14:02:50 -0800 Subject: [PATCH] Added MapCacheLRU::getAllKeys() method Change-Id: Idc9155bb55d37b083a6c1124721b74d4910ccec5 --- includes/libs/MapCacheLRU.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/includes/libs/MapCacheLRU.php b/includes/libs/MapCacheLRU.php index 2a7ee2a671..0b6db32ef9 100644 --- a/includes/libs/MapCacheLRU.php +++ b/includes/libs/MapCacheLRU.php @@ -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 * -- 2.20.1