memorystore

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: Apache-2.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 MemDBStore

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

MemDBStore is a test memory database.

func NewMemDBStore

func NewMemDBStore() *MemDBStore

NewMemDBStore create a memory database instance.

func (*MemDBStore) Delete

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

func (*MemDBStore) Get

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

Get get content from database.

func (*MemDBStore) NewBatch

func (self *MemDBStore) NewBatch() dbstore.Batch

NewBatch create db batch

func (*MemDBStore) Put

func (db *MemDBStore) Put(key []byte, value []byte) error

Put save content to database

Jump to

Keyboard shortcuts

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