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) 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) CacheWrapWithTrace ¶
CacheWrapWithTrace implements KVStore.
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.