badger_store

package
v0.0.0-...-fdc8e6b Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadgerStore

type BadgerStore struct {
	DB *badger.DB
	// contains filtered or unexported fields
}

BadgerStore does not handle any GC (eg. BadgerStore.DB.RunValueLogGC())

func NewBadgerStore

func NewBadgerStore(path string, logger log.Logger) (*BadgerStore, error)

func (*BadgerStore) Close

func (bs *BadgerStore) Close()

func (*BadgerStore) Flush

func (bs *BadgerStore) Flush() error

func (*BadgerStore) Insert

func (bs *BadgerStore) Insert(key string, value []byte) error

func (*BadgerStore) Key

func (bs *BadgerStore) Key(key string) (bool, error)

func (*BadgerStore) Len

func (bs *BadgerStore) Len() uint

func (*BadgerStore) Remove

func (bs *BadgerStore) Remove(key string) error

func (*BadgerStore) Retrieve

func (bs *BadgerStore) Retrieve(key string) ([]byte, error)

func (*BadgerStore) Size

func (bs *BadgerStore) Size() uint64

Jump to

Keyboard shortcuts

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