redissession

package
v0.0.0-...-4fa15db Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRedisStore

func GetRedisStore(s Store) (rediStore *redisstore.RedisStore, err error)

GetRedisStore get the actual woking store. Ref: https://godoc.org/github.com/boj/redistore#RediStore

func NewStore

func NewStore(ctx context.Context, client redis.UniversalClient) (ginsessions.Store, error)

NewStore - create new session store with given redis client interface

func SetKeyPrefix

func SetKeyPrefix(s Store, prefix string) error

SetKeyPrefix sets the key prefix in the redis database.

Types

type Store

type Store interface {
	ginsessions.Store
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL