badger

package
v0.0.0-...-d3eb95e Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClosed = errors.New("database closed")

Functions

func New

func New(opt badger.Options) (kv.Store, error)

func NewReadOnly

func NewReadOnly(opt badger.Options) (kv.ReadOnlyStore, error)

Types

type Store

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

func (*Store) Close

func (s *Store) Close() error

func (*Store) Get

func (s *Store) Get(key string) (b []byte, err error)

func (*Store) Set

func (s *Store) Set(key string, value []byte) error

func (*Store) SetWithTTL

func (s *Store) SetWithTTL(key string, value []byte, ttl time.Duration) error

Jump to

Keyboard shortcuts

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