From 8310ea2c4a9c7402c79f5a2a7ac68b74f975e4b9 Mon Sep 17 00:00:00 2001 From: Alexander Kolov Date: Thu, 9 Jan 2025 20:00:18 +0900 Subject: [PATCH] Log the reason why redis cache is disabled --- .../src/orchestrator/QueryCache.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/cubejs-query-orchestrator/src/orchestrator/QueryCache.ts b/packages/cubejs-query-orchestrator/src/orchestrator/QueryCache.ts index e5422fb773..7a3a41f66f 100644 --- a/packages/cubejs-query-orchestrator/src/orchestrator/QueryCache.ts +++ b/packages/cubejs-query-orchestrator/src/orchestrator/QueryCache.ts @@ -104,9 +104,9 @@ export type PreAggTableToTempTable = [ export type CacheKey = | string | [ - query: string | QueryTuple, - options?: string[] - ]; + query: string | QueryTuple, + options?: string[] + ]; type CacheEntry = { time: number; @@ -177,6 +177,9 @@ export class QueryCache { if (redisUrl && redisNamespace) { this.redisCache = new RedisQueryCacheClient({ url: redisUrl, namespace: redisNamespace, logger: this.logger }); } + else { + this.logger('Redis cache is disabled', { redisUrl, redisNamespace }) + } } /** @@ -686,7 +689,7 @@ export class QueryCache { /** * Returns registered queries queues hash table. */ - public getQueues(): {[dataSource: string]: QueryQueue} { + public getQueues(): { [dataSource: string]: QueryQueue } { return this.queue; }