mvccmap

package
v0.0.0-...-5fdeb2f Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MVCCMap

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

MVCCMap is the mvcc map

func New

func New() *MVCCMap

New returns new map

func (*MVCCMap) All

func (m *MVCCMap) All(prefix []byte) []interface{}

All returns the list of nodes prefixed with prefix

func (*MVCCMap) Fork

func (m *MVCCMap) Fork() interface{}

Fork will fork the map thread safe between all forks of the map

func (*MVCCMap) Free

func (m *MVCCMap) Free()

Free will free the memory of trie

func (*MVCCMap) Get

func (m *MVCCMap) Get(key []byte) interface{}

Get returns the value of specify key

func (*MVCCMap) Put

func (m *MVCCMap) Put(key []byte, value interface{})

Put will insert the key-value pair

Jump to

Keyboard shortcuts

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