Browse Source

Refactor `OC\Server::getGetRedisFactory`

Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
tags/v29.0.0beta4
Andrew Summers 10 months ago
parent
commit
c0f12d7691
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lib/private/Memcache/Redis.php

+ 2
- 2
lib/private/Memcache/Redis.php View File

@@ -70,7 +70,7 @@ class Redis extends Cache implements IMemcacheTTL {
*/
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 @@ class Redis extends Cache implements IMemcacheTTL {
}

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

Loading…
Cancel
Save