Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtisassad committed Oct 10, 2024
1 parent 82838ec commit 431c002
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/adapters/src/redis/RedisCacheAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@ export class RedisCache implements Cache {
const redisOptions: RedisClientOptions = {};
redisOptions['url'] = redis_url;
if (redis_url.includes('rediss')) {
console.log('===using tls');
redisOptions['socket'] = {
tls: true,
rejectUnauthorized: false,
reconnectStrategy: redisRetryStrategy,
connectTimeout: CONNECT_TIMEOUT,
};
} else {
console.log('===not using tls');
redisOptions['socket'] = {
reconnectStrategy: redisRetryStrategy,
connectTimeout: CONNECT_TIMEOUT,
Expand Down

0 comments on commit 431c002

Please sign in to comment.