mapdb

package
v6.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MapDB

type MapDB struct {
	Sem   sync.RWMutex
	Cache map[string]map[string][]byte // Our Cache
}

func (*MapDB) Clear

func (db *MapDB) Clear(bucket []byte) error

func (MapDB) Close

func (MapDB) Close() error

func (*MapDB) Delete

func (db *MapDB) Delete(bucket, key []byte) error

func (*MapDB) DoesKeyExist

func (db *MapDB) DoesKeyExist(bucket, key []byte) (bool, error)

func (*MapDB) Get

func (db *MapDB) Get(bucket, key []byte, destination interfaces.BinaryMarshallable) (interfaces.BinaryMarshallable, error)

func (*MapDB) GetAll

func (*MapDB) Init

func (db *MapDB) Init(bucketList [][]byte)

func (*MapDB) ListAllBuckets

func (db *MapDB) ListAllBuckets() ([][]byte, error)

func (*MapDB) ListAllKeys

func (db *MapDB) ListAllKeys(bucket []byte) ([][]byte, error)

func (*MapDB) Put

func (db *MapDB) Put(bucket, key []byte, data interfaces.BinaryMarshallable) error

func (*MapDB) PutInBatch

func (db *MapDB) PutInBatch(records []interfaces.Record) error

func (*MapDB) RawPut

func (db *MapDB) RawPut(bucket, key []byte, data interfaces.BinaryMarshallable) error

func (*MapDB) Trim

func (db *MapDB) Trim()

Don't do anything here.

Jump to

Keyboard shortcuts

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