From d12f1f977b47f545b303df6298786fcc43d237d2 Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Wed, 25 Sep 2024 13:53:15 -0600 Subject: [PATCH] fix(redis): use createClient tls config --- src/store/redis-kv-store.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/store/redis-kv-store.ts b/src/store/redis-kv-store.ts index 9b48c07c..2a13a338 100644 --- a/src/store/redis-kv-store.ts +++ b/src/store/redis-kv-store.ts @@ -40,7 +40,9 @@ export class RedisKvStore implements KVBufferStore { this.ttlSeconds = ttlSeconds; this.client = createClient({ url: redisUrl, - ...(useTls ? { tls: {} } : {}), // use base tls options if useTls is true + socket: { + tls: useTls, + }, }); this.client.on('error', (error: any) => { this.log.error(`Redis error`, {