kv

package
v0.0.0-...-bdab838 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KV

type KV interface {
	Set(key, value []byte) error
	SetWithTTL(key, value []byte, duration time.Duration) error
	Get(key []byte) ([]byte, error)
	Delete(key []byte) error
	GCTicker(discardRatio float64, duration time.Duration)
	Close() error
}

func Open

func Open(opts badger.Options) (KV, error)

Jump to

Keyboard shortcuts

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