Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LRUCache ¶
type LRUCache struct {
// contains filtered or unexported fields
}
LRUCache is a least-recently-used cache from uint64 to DomainHash
func (*LRUCache) Add ¶
func (c *LRUCache) Add(key uint64, value *externalapi.DomainHash)
Add adds an entry to the LRUCache
func (*LRUCache) Get ¶
func (c *LRUCache) Get(key uint64) (*externalapi.DomainHash, bool)
Get returns the entry for the given key, or (nil, false) otherwise
Click to show internal directories.
Click to hide internal directories.