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) GetPruning() types.PruningOptions
- func (s Store) GetStoreType() types.StoreType
- func (s Store) LastCommitID() (id types.CommitID)
- func (s *Store) SetPruning(pruning types.PruningOptions)
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 ¶ added in v0.43.0
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) GetPruning ¶ added in v0.40.0
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) SetPruning ¶
func (s *Store) SetPruning(pruning types.PruningOptions)
Click to show internal directories.
Click to hide internal directories.