Skip to content

Commit 5fae401

Browse files
rbcervillarcfisic
authored andcommitted
UniversalClient interface instead *Client
1 parent fea9825 commit 5fae401

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redisstore.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
// RedisStore stores gorilla sessions in Redis
1818
type RedisStore struct {
1919
// client to connect to redis
20-
client *redis.Client
20+
client redis.UniversalClient
2121
// default options to use when a new session is created
2222
options sessions.Options
2323
// key prefix with which the session will be stored
@@ -27,7 +27,7 @@ type RedisStore struct {
2727
}
2828

2929
// NewRedisStore returns a new RedisStore with default configuration
30-
func NewRedisStore(client *redis.Client) (*RedisStore, error) {
30+
func NewRedisStore(client redis.UniversalClient) (*RedisStore, error) {
3131

3232
rs := &RedisStore{
3333
options: sessions.Options{

0 commit comments

Comments
 (0)