cosmos-sdk: Index | Files

package cachekv

import ""


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

NewStore creates a new Store object

func (*Store) CacheWrap Uses

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

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)

Delete implements types.KVStore.

func (*Store) Get Uses

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

Get implements types.KVStore.

func (*Store) GetStoreType Uses

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

GetStoreType implements Store.

func (*Store) Has Uses

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

Has implements types.KVStore.

func (*Store) Iterator Uses

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

Iterator implements types.KVStore.

func (*Store) ReverseIterator Uses

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

ReverseIterator implements types.KVStore.

func (*Store) Set Uses

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

Set implements types.KVStore.

func (*Store) Write Uses

func (store *Store) Write()

Implements Cachetypes.KVStore.

Package cachekv imports 12 packages (graph) and is imported by 22 packages. Updated 2021-01-18. Refresh now. Tools for package owners.