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)
- func (s Store) WorkingHash() (hash []byte)
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 (Store) CacheWrap ¶
CacheWrap branches the underlying store.
func (Store) CacheWrapWithTrace ¶
CacheWrapWithTrace implements KVStore.
func (*Store) Commit ¶
Commit performs a no-op as entries are persistent between commitments.
func (*Store) GetPruning ¶
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) SetPruning ¶
func (s *Store) SetPruning(pruning pruningtypes.PruningOptions)
Click to show internal directories.
Click to hide internal directories.