mem

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: Apache-2.0, Apache-2.0 Imports: 8 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) CacheWrapWithListeners

func (s Store) CacheWrapWithListeners(storeKey types.StoreKey, listeners []types.WriteListener) types.CacheWrap

CacheWrapWithListeners implements the CacheWrapper interface.

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) CommitterCommit

func (s *Store) CommitterCommit(_ *iavl.TreeDelta) (_ types.CommitID, _ *iavl.TreeDelta)

func (*Store) GetDBReadCount

func (s *Store) GetDBReadCount() int

func (*Store) GetDBReadTime

func (s *Store) GetDBReadTime() int

func (*Store) GetDBWriteCount

func (s *Store) GetDBWriteCount() int

func (*Store) GetFlatKVReadCount

func (s *Store) GetFlatKVReadCount() int

func (*Store) GetFlatKVReadTime

func (s *Store) GetFlatKVReadTime() int

func (*Store) GetFlatKVWriteCount

func (s *Store) GetFlatKVWriteCount() int

func (*Store) GetFlatKVWriteTime

func (s *Store) GetFlatKVWriteTime() int

func (*Store) GetNodeReadCount

func (s *Store) GetNodeReadCount() int

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) LastCommitVersion added in v1.6.3

func (s Store) LastCommitVersion() (v int64)

func (*Store) ResetCount

func (s *Store) ResetCount()

func (*Store) SetPruning

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

func (*Store) SetUpgradeVersion

func (s *Store) SetUpgradeVersion(int64)

Jump to

Keyboard shortcuts

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