cachekv

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store wraps an in-memory cache around an underlying types.KVStore.

func NewStore

func NewStore(parent types.KVStore) *Store

nolint

func (*Store) CacheWrap

func (store *Store) CacheWrap() types.CacheWrap

Implements CacheWrapper.

func (*Store) CacheWrapWithTrace

func (store *Store) CacheWrapWithTrace(w io.Writer, tc types.TraceContext) types.CacheWrap

CacheWrapWithTrace implements the CacheWrapper interface.

func (*Store) Delete

func (store *Store) Delete(key []byte)

Implements types.KVStore.

func (*Store) Get

func (store *Store) Get(key []byte) (value []byte)

Implements types.KVStore.

func (*Store) GetStoreType

func (store *Store) GetStoreType() types.StoreType

Implements Store.

func (*Store) Has

func (store *Store) Has(key []byte) bool

Implements types.KVStore.

func (*Store) Iterator

func (store *Store) Iterator(start, end []byte) types.Iterator

Implements types.KVStore.

func (*Store) ReverseIterator

func (store *Store) ReverseIterator(start, end []byte) types.Iterator

Implements types.KVStore.

func (*Store) Set

func (store *Store) Set(key []byte, value []byte)

Implements types.KVStore.

func (*Store) Write

func (store *Store) Write()

Implements Cachetypes.KVStore.

Jump to

Keyboard shortcuts

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