Skip to content

Commit 7ea5044

Browse files
authored
Merge pull request #40136 from summersab/refactor/OC-Server-getGetRedisFactory
2 parents 6b4d918 + c0f12d7 commit 7ea5044

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/private/Memcache/Redis.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function __construct($prefix = '', string $logFile = '') {
7070
*/
7171
public function getCache() {
7272
if (is_null(self::$cache)) {
73-
self::$cache = \OC::$server->getGetRedisFactory()->getInstance();
73+
self::$cache = \OC::$server->get('RedisFactory')->getInstance();
7474
}
7575
return self::$cache;
7676
}
@@ -209,7 +209,7 @@ public function compareSetTTL(string $key, mixed $value, int $ttl): bool {
209209
}
210210

211211
public static function isAvailable(): bool {
212-
return \OC::$server->getGetRedisFactory()->isAvailable();
212+
return \OC::$server->get('RedisFactory')->isAvailable();
213213
}
214214

215215
protected function evalLua(string $scriptName, array $keys, array $args) {

0 commit comments

Comments
 (0)