Documentation ¶
Index ¶
- type Store
- func (gs *Store) CacheWrap() types.CacheWrap
- func (gs *Store) CacheWrapWithListeners(_ types.StoreKey, _ []types.WriteListener) types.CacheWrap
- func (gs *Store) CacheWrapWithTrace(_ io.Writer, _ types.TraceContext) types.CacheWrap
- func (gs *Store) Delete(key []byte)
- func (gs *Store) Get(key []byte) (value []byte)
- func (gs *Store) GetStoreType() types.StoreType
- func (gs *Store) Has(key []byte) bool
- func (gs *Store) Iterator(start, end []byte) types.Iterator
- func (gs *Store) ReverseIterator(start, end []byte) types.Iterator
- func (gs *Store) Set(key []byte, value []byte)
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 applies gas tracking to an underlying KVStore. It implements the KVStore interface.
func (*Store) CacheWrapWithListeners ¶ added in v0.43.1
CacheWrapWithListeners implements the CacheWrapper interface.
func (*Store) CacheWrapWithTrace ¶
CacheWrapWithTrace implements the KVStore interface.
func (*Store) Iterator ¶
Iterator implements the KVStore interface. It returns an iterator which incurs a flat gas cost for seeking to the first key/value pair and a variable gas cost based on the current value's length if the iterator is valid.
func (*Store) ReverseIterator ¶
ReverseIterator implements the KVStore interface. It returns a reverse iterator which incurs a flat gas cost for seeking to the first key/value pair and a variable gas cost based on the current value's length if the iterator is valid.