badgerdriver

package
v1.0.1-rc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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

func CreateBadgerPool(storagePath string) *badger.DB

Types

type BadgerCache

type BadgerCache struct {
	Conn   *badger.DB
	Prefix string
}

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)

func (*BadgerCache) Has

func (b *BadgerCache) Has(str string) (bool, error)

func (*BadgerCache) Set

func (b *BadgerCache) Set(str string, value interface{}, expires ...int) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL