Replies: 1 comment
-
I think it is answered here #1120 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys,
As we know, each redis instance supports 16 databases by default, and the default database index is 0.
I don't find any hiredis api support this option, both redisConnect and redisConnectWithOptions have no such option like what Go redis client does.
Here is whtat Go redis client does:
redisdb := redis.NewClient(&redis.Options{
Addr: "localhost:6379", // use default Addr
Password: "", // no password set
DB: 0, // use default DB
})
So is it possible to specify different database index other than default 0 in hiredis ?
Beta Was this translation helpful? Give feedback.
All reactions