Skip to content

Commit

Permalink
Refactor OC\Server::getGetRedisFactory
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Summers <[email protected]>
  • Loading branch information
summersab committed Aug 30, 2023
1 parent 613cd16 commit 63b5942
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/Memcache/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,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;
}
Expand Down Expand Up @@ -182,7 +182,7 @@ public function setTTL($key, $ttl) {
}

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

0 comments on commit 63b5942

Please sign in to comment.