Versions in this module Expand all Collapse all v1 v1.1.0 Nov 28, 2024 Changes in this version + type LRUCache struct + func New(capacity int, preallocate bool) *LRUCache + func (c *LRUCache) Add(blockHash *externalapi.DomainHash, index uint64, ...) + func (c *LRUCache) Get(blockHash *externalapi.DomainHash, index uint64) (*externalapi.BlockGHOSTDAGDataHashPair, bool) + func (c *LRUCache) Has(blockHash *externalapi.DomainHash, index uint64) bool + func (c *LRUCache) Remove(blockHash *externalapi.DomainHash, index uint64)