We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fea9825 commit 5fae401Copy full SHA for 5fae401
redisstore.go
@@ -17,7 +17,7 @@ import (
17
// RedisStore stores gorilla sessions in Redis
18
type RedisStore struct {
19
// client to connect to redis
20
- client *redis.Client
+ client redis.UniversalClient
21
// default options to use when a new session is created
22
options sessions.Options
23
// key prefix with which the session will be stored
@@ -27,7 +27,7 @@ type RedisStore struct {
27
}
28
29
// NewRedisStore returns a new RedisStore with default configuration
30
-func NewRedisStore(client *redis.Client) (*RedisStore, error) {
+func NewRedisStore(client redis.UniversalClient) (*RedisStore, error) {
31
32
rs := &RedisStore{
33
options: sessions.Options{
0 commit comments