refactor: Bump redis from 4.7.0 to 5.10.0 (#9994)

This commit is contained in:
dependabot[bot]
2026-01-17 22:09:44 +01:00
committed by GitHub
parent 82e0d3ace1
commit ba3e7602e6
6 changed files with 77 additions and 97 deletions

View File

@@ -35,7 +35,7 @@ export class RedisCacheAdapter {
return;
}
try {
await this.client.quit();
await this.client.close();
} catch (err) {
logger.error('RedisCacheAdapter error on shutdown', { error: err });
}

View File

@@ -2,7 +2,6 @@ import { createClient } from 'redis';
import { logger } from '../../logger';
function createPublisher({ redisURL, redisOptions = {} }): any {
redisOptions.no_ready_check = true;
const client = createClient({ url: redisURL, ...redisOptions });
client.on('error', err => { logger.error('RedisPubSub Publisher client error', { error: err }) });
client.on('connect', () => {});
@@ -12,7 +11,6 @@ function createPublisher({ redisURL, redisOptions = {} }): any {
}
function createSubscriber({ redisURL, redisOptions = {} }): any {
redisOptions.no_ready_check = true;
const client = createClient({ url: redisURL, ...redisOptions });
client.on('error', err => { logger.error('RedisPubSub Subscriber client error', { error: err }) });
client.on('connect', () => {});

View File

@@ -109,9 +109,9 @@ class ParseLiveQueryServer {
this.subscriber.close?.(),
]);
}
if (typeof this.subscriber.quit === 'function') {
if (typeof this.subscriber.close === 'function') {
try {
await this.subscriber.quit();
await this.subscriber.close();
} catch (err) {
logger.error('PubSubAdapter error on shutdown', { error: err });
}