/** * Remove all rediska * Return count of removed instance * * @return integer */ public static function removeAll() { $count = count(self::$_instances); self::$_instances = array(); return $count; }