Skip to content

Commit ee5ebdb

Browse files
committed
fix redis connection
1 parent 4df38eb commit ee5ebdb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/cache/cache.factory.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ export class CacheConfigFactory implements CacheOptionsFactory {
1212
const cacheConfig =
1313
this.configService.getOrThrow<CacheConfig>(CacheConfigName);
1414
const redisURL = `redis://:${cacheConfig.password}@${cacheConfig.host}:${cacheConfig.port}`;
15+
const keyv = createKeyv(redisURL);
1516
return {
16-
store: createKeyv(redisURL),
17-
url: redisURL,
18-
ttl: cacheConfig.ttl,
17+
stores: keyv,
1918
};
2019
}
2120
}

0 commit comments

Comments
 (0)