Documentation ¶
Index ¶
- type Store
- func (store *Store) CacheWrap() types.CacheWrap
- func (store *Store) CacheWrapWithTrace(w io.Writer, tc types.TraceContext) types.CacheWrap
- func (store *Store) Delete(key []byte)
- 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) 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 Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store wraps an in-memory cache around an underlying types.KVStore. If a cached value is nil but deleted is defined for the corresponding key, it means the parent doesn't have the key. (No need to delete upon Write())
func (*Store) CacheWrapWithTrace ¶
CacheWrapWithTrace implements the CacheWrapper interface.
func (*Store) GetStoreType ¶
GetStoreType implements Store.
func (*Store) ReverseIterator ¶
ReverseIterator implements types.KVStore.
Click to show internal directories.
Click to hide internal directories.