Documentation ¶
Index ¶
- type Store
- func (gs *Store) CacheWrap() types.Store
- func (gs *Store) Delete(key []byte)
- func (gs *Store) Flush()
- func (gs *Store) Get(key []byte) (value []byte)
- func (gs *Store) Has(key []byte) bool
- func (gs *Store) Iterator(start, end []byte) types.Iterator
- func (gs *Store) Print()
- func (gs *Store) ReverseIterator(start, end []byte) types.Iterator
- func (gs *Store) Set(key []byte, value []byte)
- func (gs *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 applies gas tracking to an underlying Store. It implements the Store interface.
func (*Store) Iterator ¶
Iterator implements the Store 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 Store 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.
Click to show internal directories.
Click to hide internal directories.