badger

package
v0.0.0-...-eb64f0e Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadgerDB

type BadgerDB struct {
	// contains filtered or unexported fields
}

BadgerDB represent a badger instance.

func NewBadgerDB

func NewBadgerDB(mode options.FileLoadingMode, dir string, compactFlag bool) (*BadgerDB, error)

NewBadgerDB creates a new badger database.

func (*BadgerDB) Delete

func (db *BadgerDB) Delete(key []byte) error

Delete delete entry for the key.

func (*BadgerDB) Get

func (db *BadgerDB) Get(key []byte) ([]byte, error)

Get reads entry for the key.

func (*BadgerDB) Set

func (db *BadgerDB) Set(key, value []byte) error

Set saves entry under the key.

Jump to

Keyboard shortcuts

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