carrier_rdbms

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

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

func New

func New(db *gorm.DB) *Instance

New 创建一个session存储实例

func (*Instance) Close

func (i *Instance) Close() error

func (*Instance) Delete

func (i *Instance) Delete(sessionId, name string) error

func (*Instance) DeleteAll

func (i *Instance) DeleteAll(sessionId string) error

func (*Instance) GC

func (i *Instance) GC(ctx context.Context) error

GC 自动gc

func (*Instance) Get

func (i *Instance) Get(sessionId, name string) (*session.Session, error)

func (*Instance) GetAll

func (i *Instance) GetAll(sessionId string) ([]*session.Session, error)

func (*Instance) Save

func (i *Instance) Save(s *session.Session) error

Jump to

Keyboard shortcuts

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