From c0f12d769142562349f40340a7c7f40daff63349 Mon Sep 17 00:00:00 2001 From: Andrew Summers <18727110+summersab@users.noreply.github.com> Date: Tue, 29 Aug 2023 18:53:01 -0500 Subject: [PATCH] Refactor `OC\Server::getGetRedisFactory` Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com> --- lib/private/Memcache/Redis.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/Memcache/Redis.php b/lib/private/Memcache/Redis.php index 5e9554eb94ea1..97b6d41ea5eff 100644 --- a/lib/private/Memcache/Redis.php +++ b/lib/private/Memcache/Redis.php @@ -70,7 +70,7 @@ public function __construct($prefix = '', string $logFile = '') { */ public function getCache() { if (is_null(self::$cache)) { - self::$cache = \OC::$server->getGetRedisFactory()->getInstance(); + self::$cache = \OC::$server->get('RedisFactory')->getInstance(); } return self::$cache; } @@ -209,7 +209,7 @@ public function compareSetTTL(string $key, mixed $value, int $ttl): bool { } public static function isAvailable(): bool { - return \OC::$server->getGetRedisFactory()->isAvailable(); + return \OC::$server->get('RedisFactory')->isAvailable(); } protected function evalLua(string $scriptName, array $keys, array $args) {