Add redis cluster client as a session store.
This commit is contained in:
@@ -4,13 +4,11 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
"log"
|
||||
|
||||
"github.com/go-redis/redis/v8"
|
||||
)
|
||||
|
||||
type RedisStore struct {
|
||||
ctx context.Context
|
||||
store *redis.Client
|
||||
store RedisSessionClient
|
||||
}
|
||||
|
||||
// AddUserSession adds the user session to redis
|
||||
|
Reference in New Issue
Block a user