Add redis cluster client as a session store.

This commit is contained in:
Nitesh Agarwal
2022-02-17 19:54:15 +05:30
parent 9970eb16c9
commit f2f4c72aa6
4 changed files with 55 additions and 4 deletions

View File

@@ -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