sessionext

package
v0.0.0-...-c3edf9c Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRediSessionContainer

func NewRediSessionContainer(expire int, source string) (session.SessionContainer, error)

Types

type RediSession

type RediSession struct {
	// contains filtered or unexported fields
}

func (*RediSession) Bool

func (this *RediSession) Bool(key string) (bool, bool)

func (*RediSession) Dead

func (this *RediSession) Dead() bool

func (*RediSession) Deadline

func (this *RediSession) Deadline() int

func (*RediSession) Delete

func (this *RediSession) Delete(key string)

func (*RediSession) Die

func (this *RediSession) Die()

func (*RediSession) Float

func (this *RediSession) Float(key string) (float64, bool)

func (*RediSession) Int

func (this *RediSession) Int(key string) (int, bool)

func (*RediSession) SessionId

func (this *RediSession) SessionId() string

func (*RediSession) SetBool

func (this *RediSession) SetBool(key string, value bool)

func (*RediSession) SetDeadline

func (this *RediSession) SetDeadline(second int)

func (*RediSession) SetFloat

func (this *RediSession) SetFloat(key string, value float64)

func (*RediSession) SetInt

func (this *RediSession) SetInt(key string, value int)

func (*RediSession) SetString

func (this *RediSession) SetString(key string, value string)

func (*RediSession) SetValue

func (this *RediSession) SetValue(key string, value interface{})

func (*RediSession) String

func (this *RediSession) String(key string) (string, bool)

func (*RediSession) Value

func (this *RediSession) Value(key string) (interface{}, bool)

type RediSessionContainer

type RediSessionContainer struct {
	// contains filtered or unexported fields
}

func (*RediSessionContainer) Close

func (this *RediSessionContainer) Close()

func (*RediSessionContainer) Closed

func (this *RediSessionContainer) Closed() bool

func (*RediSessionContainer) CreateSession

func (this *RediSessionContainer) CreateSession() (session.Session, bool)

func (*RediSessionContainer) Session

func (this *RediSessionContainer) Session(sessionId string) (session.Session, bool)

Session 获取Session,并且更新deadline,http processor 会在每次请求到的时候调用该方法

Jump to

Keyboard shortcuts

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