Documentation ¶
Overview ¶
Package buntdb use the github.com/tidwall/buntdb as cache driver
Index ¶
- Constants
- type BuntDB
- func (c *BuntDB) Clear() error
- func (c *BuntDB) Close() error
- func (c *BuntDB) Db() *buntdb.DB
- func (c *BuntDB) Del(key string) error
- func (c *BuntDB) DelMulti(keys []string) error
- func (c *BuntDB) Get(key string) interface{}
- func (c *BuntDB) GetMulti(keys []string) map[string]interface{}
- func (c *BuntDB) Has(key string) bool
- func (c *BuntDB) Set(key string, val interface{}, ttl time.Duration) (err error)
- func (c *BuntDB) SetMulti(values map[string]interface{}, ttl time.Duration) (err error)
Constants ¶
View Source
const Memory = ":memory:"
Memory open a file that does not persist to disk.
View Source
const Name = "buntDB"
Name driver name
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.