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