ipfans / echo-session

Package echo-session is a middleware that provides session support for echo.
Apache License 2.0
67 stars 36 forks source link

Is it possible to reuse Redis connections from session.NewRedisStore()? #9

Closed brunocassol closed 7 years ago

brunocassol commented 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.

brunocassol commented 7 years ago

Nevermind. I was able to figure this out now with better understanding of RedisStore.