redis

package module
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const SessionTypeRedis httpsession.SessionType = "REDIS"

Variables

View Source
var (
	SessionPrefix = "httpsession"
)

Functions

This section is empty.

Types

type SessionProvider

type SessionProvider struct {
	Master *datastore.RedisOp
	Slave  *datastore.RedisOp
}

func NewSessionProvider

func NewSessionProvider(profileName string) *SessionProvider

func NewSessionProviderWithRedis

func NewSessionProviderWithRedis(redis *datastore.Redis) *SessionProvider

func (*SessionProvider) Delete

func (s *SessionProvider) Delete(key string)

func (*SessionProvider) NewSession

func (s *SessionProvider) NewSession(expire time.Time) httpsession.Session

func (*SessionProvider) Save

func (s *SessionProvider) Save(session httpsession.Session) error

func (*SessionProvider) Session

func (s *SessionProvider) Session(key string) httpsession.Session

func (*SessionProvider) Sessions

func (s *SessionProvider) Sessions() map[string]httpsession.Session

func (*SessionProvider) Type added in v1.0.3

Jump to

Keyboard shortcuts

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