问题描述
我正在尝试连接到AWS Redis弹性缓存,但是我一直一直收到此错误。我不确定我在这里做错了什么,我们将不胜感激。这是我的代码
async function testRedis(){
try{
const asyncRedis = require("async-redis");
const client = asyncRedis.createClient({
port: 6379,host: 'myHost',auth_pass: redisPassword,connect_timeout: 900,enable_offline_queue: false
})
const response = await client.set("test","response");
const redisResp = await client.get("test");
const connStatus = client.quit()
console.log('connection status::',connStatus)
} catch (err) {
console.log(err)
}
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)