mvccmap

package
v3.11.4 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 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) []any

All returns the list of nodes prefixed with prefix

func (*MVCCMap) Fork

func (m *MVCCMap) Fork() any

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) any

Get returns the value of specify key

func (*MVCCMap) Put

func (m *MVCCMap) Put(key []byte, value any)

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