badger

package
v0.0.0-...-d73b759 Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Conn db Conn
	Conn chan int
	// Pool db pool
	Pool *pool
)

Functions

This section is empty.

Types

type Read

type Read struct{}

Read read

func NewRead

func NewRead() *Read

NewRead new read

func (*Read) Get

func (r *Read) Get(k string) ([]byte, error)

Get Get

func (*Read) List

func (r *Read) List(args ...string) map[string][]byte

List list

type Write

type Write struct{}

Write write

func NewWrite

func NewWrite() *Write

NewWrite new write

func (*Write) List

func (w *Write) List(args map[string][]byte) error

List list

func (*Write) Set

func (w *Write) Set(k string, v []byte) error

Set Set item

func (*Write) SetWithTTL

func (w *Write) SetWithTTL(k string, v []byte, dur time.Duration) error

SetWithTTL SetWithTTL

Jump to

Keyboard shortcuts

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