I had a problem connecting to aws elasticache, I found some solutions but couldn't solve the problem. Hope anyone can help.
const redis = createClient({
socket: {
host: process.env.REDIS_HOST,
port: Number(process.env.REDIS_PORT),
tls: true,
connectTimeout: 30000,
},
});
error logs
Redis Client Error Error: connect ETIMEDOUT