Reputation: 33
Today I created Serverless Elasticache Valkey and tried to connect using code which I got from Connect to your cache section.
const {Redis} = require("ioredis");
const client = new Redis.Cluster(
[{host: 'xxxxxxxx', port: 6379}],
{
dnsLookup: (address, callback) => callback(null, address),
redisOptions: {
tls: {},
},
});
This code gets error -> [ioredis] Unhandled error event: ClusterAllFailedError: Failed to refresh slots cache.
.
I also try different ways, but I get errors like timeout etc.
Can anyone have an idea?
Upvotes: 0
Views: 19