tj / connect-redis

Redis session store for Connect

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Database and password

henri9813 opened this issue · comments

I have a mutualized Redis and many JS app which use the same redis.

However, how can i specify which database ID ( integer ) should be used and the Redis Password to use ?

For example, in golang we have:

redisClient = redis.NewClient(&redis.Options{
		Addr:     "redis.com",
		Password: "superPassword",
		DB:       0,
	})

Please see the documentation for redis.createClient. This library just uses what you set there.

Okay, i can use all theses parameters ?

( MAybe add this to the doc ? )

Henri

https://github.com/tj/connect-redis#client

You pass this library a client you set up, you can pick different ones depending on your needs. Each of the clients will have their own options for you to set, we don't manage that behavior in this project. I assumed you were using the more common redis package for your client and I shared their documentation on how to create a client using that library.

Okay,

You can maybe made a clear and explicit reference to this documentation ?


You can all documentation of the client here: link 

It was not explicit when i read it.

Henri

Please propose an addition to the readme as a PR and I will review it. Thx

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

This issue was closed because it has been stalled for 5 days with no activity.