Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KnownCache ¶
type KnownCache struct {
// contains filtered or unexported fields
}
KnownCache is a cache for known hashes.
func NewKnownCache ¶
func NewKnownCache(max int) *KnownCache
NewKnownCache creates a new knownCache with a max capacity.
func (*KnownCache) Add ¶
func (k *KnownCache) Add(hashes ...common.Hash)
Add adds a list of elements to the set.
func (*KnownCache) Cardinality ¶
func (k *KnownCache) Cardinality() int
Cardinality returns the number of elements in the set.
Click to show internal directories.
Click to hide internal directories.