cosmos-sdk: github.com/cosmos/cosmos-sdk/store/cachekv Index | Files

package cachekv

import "github.com/cosmos/cosmos-sdk/store/cachekv"

Index

Package Files

memiterator.go mergeiterator.go store.go

type Store Uses

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

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

func NewStore Uses

func NewStore(parent types.KVStore) *Store

func (*Store) CacheWrap Uses

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

Implements CacheWrapper.

func (*Store) CacheWrapWithTrace Uses

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

CacheWrapWithTrace implements the CacheWrapper interface.

func (*Store) Delete Uses

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

Implements types.KVStore.

func (*Store) Get Uses

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

Implements types.KVStore.

func (*Store) GetStoreType Uses

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

Implements Store.

func (*Store) Has Uses

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

Implements types.KVStore.

func (*Store) Iterator Uses

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

Implements types.KVStore.

func (*Store) ReverseIterator Uses

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

Implements types.KVStore.

func (*Store) Set Uses

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

Implements types.KVStore.

func (*Store) Write Uses

func (store *Store) Write()

Implements Cachetypes.KVStore.

Package cachekv imports 9 packages (graph) and is imported by 10 packages. Updated 2019-09-18. Refresh now. Tools for package owners.