koajs / koa-redis

Redis storage for Koa session middleware/cache with Sentinel and Cluster support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Appears to fail with password@hostname style URI

jhsware opened this issue · comments

I have used redis in a k8s cluster. When setting the connection using redis://password@hostname:port it fails to connect. When using redis://hostname:port?password=password it works. It would be nice to be able to use both, or throw an error.

Format: [redis:]//[[user][:password@]][host][:port][/db-number][?db=db-number[&password=bar[&option=value]]]

use redis://:password@hostname:port or redis://user:password@hostname:port and try again

@jhsware

My bad! Obviously one needs a leading colon...