Documentation ¶
Index ¶
- Constants
- func Clear(prefix string) error
- func Configure(cfg Map)
- func Delete(key string) error
- func Exists(key string) (bool, error)
- func Go()
- func Keys(prefix string) ([]string, error)
- func Read(key string) (Any, error)
- func Ready()
- func Register(name string, value Any, overrides ...bool)
- func Serial(key string, start, step int64) (int64, error)
- func Write(key string, value Any, expiries ...time.Duration) error
- type Config
- type Configs
- type Connect
- type Driver
- type Instance
- type Module
- func (this *Module) Clear(prefix string) error
- func (this *Module) Config(name string, config Config, override bool)
- func (this *Module) Configs(name string, config Configs, override bool)
- func (this *Module) Configure(global Map)
- func (this *Module) Connect()
- func (this *Module) Delete(key string) error
- func (this *Module) Driver(name string, driver Driver, override bool)
- func (this *Module) Exists(key string) (bool, error)
- func (this *Module) Initialize()
- func (this *Module) Keys(prefix string) ([]string, error)
- func (this *Module) Launch()
- func (this *Module) Read(key string) (Any, error)
- func (this *Module) Register(name string, value Any, override bool)
- func (this *Module) Serial(key string, start, step int64) (int64, error)
- func (this *Module) Terminate()
- func (this *Module) Write(key string, val Any, expiries ...time.Duration) error
Constants ¶
View Source
const (
NAME = "CACHE"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connect ¶
type Connect interface { Open() error Close() error Read(string) (Any, error) Write(key string, val Any, expiry time.Duration) error Exists(key string) (bool, error) Delete(key string) error Serial(key string, start, step int64) (int64, error) Keys(prefix string) ([]string, error) Clear(prefix string) error }
Connect 会话连接
Click to show internal directories.
Click to hide internal directories.