Documentation ¶
Index ¶
- type CloneCache
- func (cloneCache *CloneCache) Add(prefix common.DataEntryPrefix, key []byte, value states.StateValue)
- func (cloneCache *CloneCache) Commit()
- func (cloneCache *CloneCache) Delete(prefix common.DataEntryPrefix, key []byte)
- func (cloneCache *CloneCache) Get(prefix common.DataEntryPrefix, key []byte) (states.StateValue, error)
- func (cloneCache *CloneCache) GetOrAdd(prefix common.DataEntryPrefix, key []byte, value states.StateValue) (states.StateValue, error)
- type Memory
- type StateItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloneCache ¶
type CloneCache struct { Memory Memory Store common.StateStore }
func NewCloneCache ¶
func NewCloneCache(store common.StateStore) *CloneCache
func (*CloneCache) Add ¶
func (cloneCache *CloneCache) Add(prefix common.DataEntryPrefix, key []byte, value states.StateValue)
func (*CloneCache) Commit ¶
func (cloneCache *CloneCache) Commit()
func (*CloneCache) Delete ¶
func (cloneCache *CloneCache) Delete(prefix common.DataEntryPrefix, key []byte)
func (*CloneCache) Get ¶
func (cloneCache *CloneCache) Get(prefix common.DataEntryPrefix, key []byte) (states.StateValue, error)
func (*CloneCache) GetOrAdd ¶
func (cloneCache *CloneCache) GetOrAdd(prefix common.DataEntryPrefix, key []byte, value states.StateValue) (states.StateValue, error)
type StateItem ¶
type StateItem struct { Prefix common.DataEntryPrefix Key string Value states.StateValue State common.ItemState }
Click to show internal directories.
Click to hide internal directories.