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) {