mem

package
v0.0.0-...-2a91c6f Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	dbadapter.Store
}

Store implements an in-memory only KVStore. Entries are persisted between commits and thus between blocks. State in Memory store is not committed as part of app state but maintained privately by each node

func NewStore

func NewStore() *Store

func NewStoreWithDB

func NewStoreWithDB(db *dbm.MemDB) *Store

func (Store) CacheWrap

func (s Store) CacheWrap() types.CacheWrap

CacheWrap branches the underlying store.

func (Store) CacheWrapWithTrace

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

CacheWrapWithTrace implements KVStore.

func (*Store) Commit

func (s *Store) Commit() (id types.CommitID)

Commit performs a no-op as entries are persistent between commitments.

func (*Store) GetPruning

func (s *Store) GetPruning() types.PruningOptions

GetPruning is a no-op as pruning options cannot be directly set on this store. They must be set on the root commit multi-store.

func (Store) GetStoreType

func (s Store) GetStoreType() types.StoreType

GetStoreType returns the Store's type.

func (Store) LastCommitID

func (s Store) LastCommitID() (id types.CommitID)

func (*Store) SetPruning

func (s *Store) SetPruning(pruning types.PruningOptions)

Jump to

Keyboard shortcuts

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