Documentation
¶
Index ¶
- func BadgerCacheClean(cache *BadgerCache) error
- func CreateBadgerPool(storagePath string) *badger.DB
- type BadgerCache
- func (b *BadgerCache) Empty() error
- func (b *BadgerCache) EmptyByMatch(str string) error
- func (b *BadgerCache) Forget(str string) error
- func (b *BadgerCache) Get(str string) (interface{}, error)
- func (b *BadgerCache) Has(str string) (bool, error)
- func (b *BadgerCache) Set(str string, value interface{}, expires ...int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadgerCacheClean ¶
func BadgerCacheClean(cache *BadgerCache) error
Performance optimization to keep the Badger database size under control by cleaning up deleted data
func CreateBadgerPool ¶
Types ¶
type BadgerCache ¶
func (*BadgerCache) Empty ¶
func (b *BadgerCache) Empty() error
func (*BadgerCache) EmptyByMatch ¶
func (b *BadgerCache) EmptyByMatch(str string) error
func (*BadgerCache) Forget ¶
func (b *BadgerCache) Forget(str string) error
func (*BadgerCache) Get ¶
func (b *BadgerCache) Get(str string) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.