package
Version:
v0.78.5-pre
Opens a new window with list of versions in this module.
Published: Aug 13, 2021
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
HashCache is a payload cache which is used to store
last consensus payloads.
NewFIFOCache returns new FIFO cache with the specified capacity.
Add adds payload into a cache if it doesn't already exist.
Get returns payload with the specified hash from cache.
Has checks if an item is already in cache.
Hashable is a type of items which can be stored in the HashCache.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.