Skip to content

Commit 8310ea2

Browse files
committed
Log the reason why redis cache is disabled
1 parent 5e91445 commit 8310ea2

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

packages/cubejs-query-orchestrator/src/orchestrator/QueryCache.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ export type PreAggTableToTempTable = [
104104
export type CacheKey =
105105
| string
106106
| [
107-
query: string | QueryTuple,
108-
options?: string[]
109-
];
107+
query: string | QueryTuple,
108+
options?: string[]
109+
];
110110

111111
type CacheEntry = {
112112
time: number;
@@ -177,6 +177,9 @@ export class QueryCache {
177177
if (redisUrl && redisNamespace) {
178178
this.redisCache = new RedisQueryCacheClient({ url: redisUrl, namespace: redisNamespace, logger: this.logger });
179179
}
180+
else {
181+
this.logger('Redis cache is disabled', { redisUrl, redisNamespace })
182+
}
180183
}
181184

182185
/**
@@ -686,7 +689,7 @@ export class QueryCache {
686689
/**
687690
* Returns registered queries queues hash table.
688691
*/
689-
public getQueues(): {[dataSource: string]: QueryQueue} {
692+
public getQueues(): { [dataSource: string]: QueryQueue } {
690693
return this.queue;
691694
}
692695

0 commit comments

Comments
 (0)