Closed brunocassol closed 7 years ago
Not sure if this even makes sense or if this is something I would want to do. I don't have much experience with Redis or Go.
Is it be possible to reuse connections made by NewRedisStore()?
store, err := session.NewRedisStore(32, "tcp", "localhost:6379", "", []byte("secret"))
So I could, for example, save data to another database in the same Redis server. When I debug I see that there is a Pool deep down store but I can't seem to access it.
Thanks in advance.
Nevermind. I was able to figure this out now with better understanding of RedisStore.
Not sure if this even makes sense or if this is something I would want to do. I don't have much experience with Redis or Go.
Is it be possible to reuse connections made by NewRedisStore()?
store, err := session.NewRedisStore(32, "tcp", "localhost:6379", "", []byte("secret"))
So I could, for example, save data to another database in the same Redis server. When I debug I see that there is a Pool deep down store but I can't seem to access it.
Thanks in advance.