Documentation ¶
Index ¶
- type Bolt
- func (c *Bolt) Add(bucket string)
- func (c *Bolt) BatchPut(bucket string, key, val []interface{}, ttl int64)
- func (c *Bolt) Close()
- func (c *Bolt) Delete(bucket string, key interface{}) error
- func (c *Bolt) Get(bucket string, key, val interface{}) error
- func (c *Bolt) GetAll(bucket string, tk, tv interface{}, fn func(k, v interface{}))
- func (c *Bolt) GetValue(bucket string, key interface{}) (int64, string, error)
- func (c *Bolt) ListBucket() []string
- func (c *Bolt) ListKey(bucket string) []string
- func (c *Bolt) Open(file string)
- func (c *Bolt) Put(bucket string, key, val interface{}, ttl int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bolt ¶
type Bolt struct {
// contains filtered or unexported fields
}
func (*Bolt) GetAll ¶ added in v0.5.0
GetAll
@Description: 获取bucket所有kv数据 @receiver *Bolt @param bucket string @param tk interface{} key类型转换临时变量 @param tv interface{} value类型转换临时变量 @param fn func(k, v interface{})
func (*Bolt) ListBucket ¶ added in v0.5.3
Click to show internal directories.
Click to hide internal directories.