# Functions
NewCapacityLRU constructs an LRU cache of the given size with a byte size capacity.
NewImmunityCache creates a new cache.
NewLRUCache returns an instance of a LRU cache.
NewLRUCacheWithEviction creates a new sized LRU cache instance with eviction function.
NewPeerTimeCache returns an instance of a peer time cacher.
NewTimeCache returns an instance of a time cache.
NewTimeCacher creates a new timeCacher.
# Interfaces
PeerBlackListCacher can determine if a certain peer id is or not blacklisted.
TimeCacher defines the cache that can keep a record for a bounded time.
# Type aliases
ArgTimeCacher is the argument used to create a new timeCacher instance.
CacheConfig holds cache configuration.
EvictionHandler is an alias to the imported EvictionHandler.
ImmunityCache is a cache-like structure.
TimeCache is an alias for the imported TimeCache structure.