redis

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRedisStore

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

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

func NewStore

func NewStore(context context.Context, client redis.UniversalClient) (sessions.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 {
	sessions.Store
}

Jump to

Keyboard shortcuts

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