Versions in this module Expand all Collapse all v0 v0.2.0 Apr 21, 2025 v0.1.0 Apr 21, 2025 Changes in this version type Config + Expire time.Duration v0.0.1 Mar 30, 2023 Changes in this version + const NAME + var ErrInvalidConnection = errors.New("Invalid session connection.") + func Clear(prefixs ...string) error + func Delete(id string) error + func Exists(id string) (bool, error) + func Keys(prefixs ...string) ([]string, error) + func Read(id string) (Map, error) + func Write(id string, value Map, expiries ...time.Duration) error + type Config struct + Codec string + Driver string + Expiry time.Duration + Prefix string + Setting Map + Weight int + type Configs map[string]Config + type Connect interface + Clear func(prefix string) error + Close func() error + Delete func(id string) error + Exists func(id string) (bool, error) + Keys func(prefix string) ([]string, error) + Open func() error + Read func(id string) ([]byte, error) + Write func(id string, val []byte, expiry time.Duration) error + type Driver interface + Connect func(*Instance) (Connect, error) + type Instance struct + Config Config + Name string + Setting Map + type Module struct + func (this *Module) Clear(prefixs ...string) error + func (this *Module) Config(name string, config Config) + func (this *Module) Configs(name string, config Configs) + func (this *Module) Configure(global Map) + func (this *Module) Connect() + func (this *Module) Delete(id string) error + func (this *Module) Driver(name string, driver Driver) + func (this *Module) Exists(id string) (bool, error) + func (this *Module) Initialize() + func (this *Module) Keys(prefixs ...string) ([]string, error) + func (this *Module) Launch() + func (this *Module) Read(id string) (Map, error) + func (this *Module) Register(name string, value Any) + func (this *Module) Terminate() + func (this *Module) Write(id string, val Map, expiries ...time.Duration) error