upstash / issues

Issue Tracker for Upstash
https://upstash.com
2 stars 0 forks source link

Console/redis-page shows outdated node-redis createClient syntax #32

Closed jenssogaard closed 1 year ago

jenssogaard commented 1 year ago

Page: https://console.upstash.com/redis/{xxxxxxx} shows outdated example code for node-redis.

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

ademilter commented 1 year ago

thank you @jenssogaard fixed 🚀