Documentation ¶
Index ¶
- Constants
- Variables
- 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
- type Configs
- type Connect
- type Driver
- type Instance
- type Module
- 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
Constants ¶
View Source
const (
NAME = "SESSION"
)
Variables ¶
View Source
var (
ErrInvalidConnection = errors.New("Invalid session connection.")
)
Functions ¶
Types ¶
type Connect ¶
type Connect interface { Open() error Close() error Read(id string) ([]byte, error) Write(id string, val []byte, expiry time.Duration) error Exists(id string) (bool, error) Delete(id string) error Keys(prefix string) ([]string, error) Clear(prefix string) error }
Connect 会话连接
Click to show internal directories.
Click to hide internal directories.