Closed jenssogaard closed 1 year ago
Page: https://console.upstash.com/redis/{xxxxxxx} shows outdated example code for node-redis.
https://console.upstash.com/redis/{xxxxxxx}
In the "Connect to your database"-section:
var client = redis.createClient ({ host : '****.upstash.io', port : '*******', password: '********' });
node-redis v4+ do not use host property and instead expecs url - see documentation: https://github.com/redis/node-redis#usage
host
url
thank you @jenssogaard fixed 🚀
Page:
https://console.upstash.com/redis/{xxxxxxx}
shows outdated example code for node-redis.In the "Connect to your database"-section:
node-redis v4+ do not use
host
property and instead expecsurl
- see documentation: https://github.com/redis/node-redis#usage