Просмотр исходного кода

Refactor `OC\Server::getGetRedisFactory`

Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
tags/v29.0.0beta4
Andrew Summers 10 месяцев назад
Родитель
Сommit
c0f12d7691
1 измененных файлов: 2 добавлений и 2 удалений
  1. 2
    2
      lib/private/Memcache/Redis.php

+ 2
- 2
lib/private/Memcache/Redis.php Просмотреть файл

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

Загрузка…
Отмена
Сохранить