memdb

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: UNKNOWN, Apache-2.0, UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemDB

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

func NewMemDB

func NewMemDB() *MemDB

func (*MemDB) Close

func (db *MemDB) Close()

Implements DB.

func (*MemDB) Delete

func (db *MemDB) Delete(key []byte)

Implements DB.

func (*MemDB) DeleteNoLock

func (db *MemDB) DeleteNoLock(key []byte)

Implements internal.AtomicSetDeleter.

func (*MemDB) DeleteNoLockSync

func (db *MemDB) DeleteNoLockSync(key []byte)

Implements internal.AtomicSetDeleter.

func (*MemDB) DeleteSync

func (db *MemDB) DeleteSync(key []byte)

Implements DB.

func (*MemDB) Get

func (db *MemDB) Get(key []byte) []byte

Implements DB.

func (*MemDB) Has

func (db *MemDB) Has(key []byte) bool

Implements DB.

func (*MemDB) Iterator

func (db *MemDB) Iterator(start, end []byte) dbm.Iterator

Implements DB.

func (*MemDB) Mutex

func (db *MemDB) Mutex() *sync.Mutex

Implements internal.AtomicSetDeleter.

func (*MemDB) NewBatch

func (db *MemDB) NewBatch() dbm.Batch

Implements DB.

func (*MemDB) Print

func (db *MemDB) Print()

Implements DB.

func (*MemDB) ReverseIterator

func (db *MemDB) ReverseIterator(start, end []byte) dbm.Iterator

Implements DB.

func (*MemDB) Set

func (db *MemDB) Set(key []byte, value []byte)

Implements DB.

func (*MemDB) SetNoLock

func (db *MemDB) SetNoLock(key []byte, value []byte)

Implements internal.AtomicSetDeleter.

func (*MemDB) SetNoLockSync

func (db *MemDB) SetNoLockSync(key []byte, value []byte)

Implements internal.AtomicSetDeleter.

func (*MemDB) SetSync

func (db *MemDB) SetSync(key []byte, value []byte)

Implements DB.

func (*MemDB) Stats

func (db *MemDB) Stats() map[string]string

Implements DB.

Jump to

Keyboard shortcuts

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