fix(core): own cache transports and accept cleanup reviews
This commit is contained in:
parent
bd9332b2f6
commit
b4ac6460ef
24 changed files with 504 additions and 97 deletions
2
libs/core/cache/src/connection-manager.ts
vendored
2
libs/core/cache/src/connection-manager.ts
vendored
|
|
@ -50,6 +50,7 @@ export class RedisConnectionManager {
|
|||
* Create a new Redis connection
|
||||
*/
|
||||
private createConnection(config: RedisConfig): Redis {
|
||||
const retryDelay = config.retryDelay;
|
||||
return new Redis({
|
||||
host: config.host,
|
||||
port: config.port,
|
||||
|
|
@ -60,6 +61,7 @@ export class RedisConnectionManager {
|
|||
connectTimeout: config.connectTimeout ?? REDIS_DEFAULTS.CONNECT_TIMEOUT,
|
||||
commandTimeout: config.commandTimeout ?? REDIS_DEFAULTS.COMMAND_TIMEOUT,
|
||||
lazyConnect: false,
|
||||
...(retryDelay === undefined ? {} : { retryStrategy: () => retryDelay }),
|
||||
...(config.tls && { tls: config.tls }),
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue