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) (Map, error)
- func ReadData(key string) ([]byte, error)
- func Ready()
- func Register(name string, value Any, overrides ...bool)
- func Serial(key string, start, step int64, expiries ...time.Duration) (int64, error)
- func Write(key string, value Map, expiries ...time.Duration) error
- func WriteData(key string, data []byte, 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) (Map, error)
- func (this *Module) ReadData(key string) ([]byte, error)
- func (this *Module) Register(name string, value Any, override bool)
- func (this *Module) Serial(key string, start, step int64, expiries ...time.Duration) (int64, error)
- func (this *Module) Terminate()
- func (this *Module) Write(key string, val Map, expiries ...time.Duration) error
- func (this *Module) WriteData(key string, data []byte, 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) ([]byte, error) Write(key string, val []byte, expiry time.Duration) error Exists(key string) (bool, error) Delete(key string) error Serial(key string, start, step int64, expiry time.Duration) (int64, error) Keys(prefix string) ([]string, error) Clear(prefix string) error }
Connect 会话连接
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func (*Module) Initialize ¶
func (this *Module) Initialize()
Click to show internal directories.
Click to hide internal directories.