Documentation ¶
Index ¶
- type BadgerStore
- func (bs *BadgerStore) Close()
- func (bs *BadgerStore) Flush() error
- func (bs *BadgerStore) Insert(key string, value []byte) error
- func (bs *BadgerStore) Key(key string) (bool, error)
- func (bs *BadgerStore) Len() uint
- func (bs *BadgerStore) Remove(key string) error
- func (bs *BadgerStore) Retrieve(key string) ([]byte, error)
- func (bs *BadgerStore) Size() uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadgerStore ¶
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) Len ¶
func (bs *BadgerStore) Len() uint
func (*BadgerStore) Remove ¶
func (bs *BadgerStore) Remove(key string) error
func (*BadgerStore) Size ¶
func (bs *BadgerStore) Size() uint64
Click to show internal directories.
Click to hide internal directories.