Versions in this module Expand all Collapse all v2 v2.0.0 Mar 4, 2021 Changes in this version + func GenerateRandomKey(r *http.Request) (string, error) + type KeyGenFunc func(*http.Request) (string, error) + type Option func(ops *Options) + func WithKeyGenFunc(fn KeyGenFunc) Option + func WithKeyPairs(keyPairs ...[]byte) Option + func WithKeyPrefix(keyPrefix string) Option + func WithMaxLength(maxLen int) Option + func WithOptions(opts *sessions.Options) Option + func WithSerializer(serializer serializer.SessionSerializer) Option + type Options struct + Codecs []securecookie.Codec + KeyGenFunc KeyGenFunc + KeyPrefix string + MaxLength int + Options *sessions.Options + Serializer serializer.SessionSerializer + type RedisStore struct + func NewStoreWithUniversalClient(client redis.UniversalClient, optFns ...Option) (*RedisStore, error) + func (st *RedisStore) Get(r *http.Request, name string) (*sessions.Session, error) + func (st *RedisStore) New(r *http.Request, name string) (*sessions.Session, error) + func (st *RedisStore) Save(r *http.Request, w http.ResponseWriter, session *sessions.Session) error + func (st *RedisStore) SetOptions(opts *sessions.Options) v2.0.0-beta.1 Dec 9, 2020 Other modules containing this package github.com/boxgo/redisstore