Documentation
¶
Index ¶
- type DBSet
- type Instance
- func (instance *Instance) DisplayQueue()
- func (instance *Instance) FlushDB() error
- func (instance *Instance) GetDBList() []string
- func (instance *Instance) GetSize() uint
- func (instance *Instance) LPop() (interface{}, error)
- func (instance *Instance) LPush(val interface{}) error
- func (instance *Instance) RPop() (interface{}, error)
- func (instance *Instance) RPush(val interface{}) error
- func (instance *Instance) SetDebugMode(isDebug bool) *Instance
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
}
Instance 实例
func (*Instance) FlushDB ¶
FlushDB 删除数据库
警告:此操作后,当前实例将被销毁,若继续调用,将会panic
如:
instance := queue.GetDBInstance("db1")
instance.FlushDB()
instance.LPush(1) # <- 此处将会panic
func (*Instance) SetDebugMode ¶ added in v0.0.5
SetDebugMode 设置调试模式
Click to show internal directories.
Click to hide internal directories.