Skip to content

Commit

Permalink
fix(redis): use createClient tls config
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Sep 25, 2024
1 parent 9352650 commit e902291
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/store/redis-kv-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`, {
Expand Down

0 comments on commit e902291

Please sign in to comment.