Documentation ¶
Index ¶
- type PreChangesHandler
- type Store
- func (store *Store) CacheWrap() types.CacheWrap
- func (store *Store) CacheWrapWithTrace(w io.Writer, tc types.TraceContext) types.CacheWrap
- func (store *Store) Clear()
- func (store *Store) Delete(key []byte)
- func (store *Store) DisableCacheReadList()
- func (store *Store) Get(key []byte) (value []byte)
- func (store *Store) GetStoreType() types.StoreType
- func (store *Store) Has(key []byte) bool
- func (store *Store) Iterator(start, end []byte) types.Iterator
- func (store *Store) IteratorCache(isdirty bool, ...) bool
- func (store *Store) Reset(parent types.KVStore)
- func (store *Store) ReverseIterator(start, end []byte) types.Iterator
- func (store *Store) Set(key []byte, value []byte)
- func (store *Store) Write()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PreChangesHandler ¶ added in v1.3.0
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store wraps an in-memory cache around an underlying types.KVStore.
func NewStoreWithPreChangeHandler ¶ added in v1.3.0
func NewStoreWithPreChangeHandler(parent types.KVStore, preChangesHandler PreChangesHandler) *Store
func (*Store) CacheWrapWithTrace ¶
CacheWrapWithTrace implements the CacheWrapper interface.
func (*Store) Clear ¶ added in v1.5.4
func (store *Store) Clear()
Clear will clear all internal data without writing to the parent.
func (*Store) DisableCacheReadList ¶ added in v1.5.6
func (store *Store) DisableCacheReadList()
func (*Store) IteratorCache ¶
func (*Store) Reset ¶ added in v1.5.4
Reset will clear all internal data without writing to the parent and set the new parent.
func (*Store) ReverseIterator ¶
Implements types.KVStore.
Click to show internal directories.
Click to hide internal directories.