Documentation ¶
Index ¶
- Constants
- func GetDB(name string) *bolt.DB
- type BoltCache
- func (c *BoltCache) CloseDB()
- func (c *BoltCache) Delete(key []byte) error
- func (c *BoltCache) DeleteBucket(name []byte) (err error)
- func (c *BoltCache) DeleteData() error
- func (c *BoltCache) Get(key []byte) (value []byte, err error)
- func (c *BoltCache) GetAllEntries() (values map[string][]byte, err error)
- func (c *BoltCache) GetAllKeys() (keys map[string]bool, err error)
- func (c *BoltCache) GetAllValues() (values [][]byte, err error)
- func (c *BoltCache) RecordsCount() (count int, err error)
- func (c *BoltCache) Set(key, value []byte) error
Constants ¶
View Source
const RequestsBucketName = "rqbucket"
RequestsBucketName - default name for BoltDB bucket
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BoltCache ¶
BoltCache - container to implement Cache instance with BoltDB backend for storage
func NewBoltDBCache ¶
NewBoltDBCache - returns new BoltCache instance
func (*BoltCache) DeleteBucket ¶
DeleteBucket - deletes bucket with all saved data
func (*BoltCache) DeleteData ¶
DeleteData - deletes bucket with all saved data
func (*BoltCache) GetAllEntries ¶
GetAllEntries - returns all keys/values
func (*BoltCache) GetAllKeys ¶
GetAllKeys - gets all current keys
func (*BoltCache) GetAllValues ¶
GetAllValues - returns all values
func (*BoltCache) RecordsCount ¶
RecordsCount - returns records count
Click to show internal directories.
Click to hide internal directories.