UnorderedCache is a cache which supports custom eviction triggers and two eviction policies: LRU and FIFO. A listener pattern is available for eviction events. This cache uses a hashmap for storing elements, making it the most performant. Only exact lookups are supported. UnorderedCache requires th
| 349 | // |
| 350 | // UnorderedCache is not safe for concurrent access. |
| 351 | type UnorderedCache struct { |
| 352 | baseCache |
| 353 | hmap map[interface{}]interface{} |
| 354 | } |
| 355 | |
| 356 | // NewUnorderedCache creates a new UnorderedCache backed by a hash map. |
| 357 | func NewUnorderedCache(config Config) *UnorderedCache { |
nothing calls this directly
no outgoing calls
no test coverage detected