Documentation ¶
Index ¶
- type Store
- func (s Store) CacheWrap() types.CacheWrap
- func (s Store) CacheWrapWithListeners(storeKey types.StoreKey, listeners []types.WriteListener) types.CacheWrap
- func (s Store) CacheWrapWithTrace(w io.Writer, tc types.TraceContext) types.CacheWrap
- func (s *Store) Commit() (id types.CommitID)
- func (s *Store) CommitterCommit(interface{}) (_ types.CommitID, _ interface{})
- func (s *Store) GetDBReadCount() int
- func (s *Store) GetDBReadTime() int
- func (s *Store) GetDBWriteCount() int
- func (s *Store) GetFlatKVReadCount() int
- func (s *Store) GetFlatKVReadTime() int
- func (s *Store) GetFlatKVWriteCount() int
- func (s *Store) GetFlatKVWriteTime() int
- func (s *Store) GetNodeReadCount() int
- func (s *Store) GetPruning() types.PruningOptions
- func (s Store) GetStoreType() types.StoreType
- func (s Store) LastCommitID() (id types.CommitID)
- func (s Store) LastCommitVersion() (v int64)
- func (s *Store) ResetCount()
- func (s *Store) SetPruning(pruning types.PruningOptions)
- func (s *Store) SetUpgradeVersion(int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type 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 NewStoreWithDB ¶
func (Store) CacheWrapWithListeners ¶
func (s Store) CacheWrapWithListeners(storeKey types.StoreKey, listeners []types.WriteListener) types.CacheWrap
CacheWrapWithListeners implements the CacheWrapper interface.
func (Store) CacheWrapWithTrace ¶
CacheWrapWithTrace implements KVStore.
func (*Store) CommitterCommit ¶
func (*Store) GetDBReadCount ¶
func (*Store) GetDBReadTime ¶
func (*Store) GetDBWriteCount ¶
func (*Store) GetFlatKVReadCount ¶
func (*Store) GetFlatKVReadTime ¶
func (*Store) GetFlatKVWriteCount ¶
func (*Store) GetFlatKVWriteTime ¶
func (*Store) GetNodeReadCount ¶
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 ¶
GetStoreType returns the Store's type.
func (Store) LastCommitID ¶
func (Store) LastCommitVersion ¶
func (*Store) ResetCount ¶
func (s *Store) ResetCount()
func (*Store) SetPruning ¶
func (s *Store) SetPruning(pruning types.PruningOptions)
func (*Store) SetUpgradeVersion ¶
Click to show internal directories.
Click to hide internal directories.