Merge "tests: Remove unused TableCleanupTest class"
[lhc/web/wiklou.git] / includes / clientpool / RedisConnectionPool.php
index 64db0d6..1b9f9b3 100644 (file)
@@ -166,6 +166,14 @@ class RedisConnectionPool implements LoggerAwareInterface {
                return self::$instances[$id];
        }
 
+       /**
+        * Destroy all singleton() instances
+        * @since 1.27
+        */
+       public static function destroySingletons() {
+               self::$instances = array();
+       }
+
        /**
         * Get a connection to a redis server. Based on code in RedisBagOStuff.php.
         *