mvcc

package
v3.0.8+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 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 Cache

type Cache interface {
	Get(key []byte) interface{}
	Put(key []byte, value interface{})
	All(prefix []byte) []interface{}
	Fork() interface{}
	Free()
}

Cache is the cache interface

func NewCache

func NewCache(t CacheType) Cache

NewCache returns the specify type cache

type CacheType

type CacheType int

CacheType is the cache type

const (
	TrieCache CacheType
	MapCache
)

The cache type constant

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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