package
1.0.42
Repository: https://github.com/mdmarek/go-datastructures.git
Documentation: pkg.go.dev

# Functions

EvictionPolicy sets the eviction policy to be used to make room for new items.
New returns a cache with the requested options configured.

# Constants

LeastRecentlyAdded indicates a least-recently-added eviction policy.
LeastRecentlyUsed indicates a least-recently-used eviction policy.

# Interfaces

Cache is a bounded-size in-memory cache of sized items with a configurable eviction policy.
Item is an item in a cache.

# Type aliases

CacheOption configures a cache.
Policy is a cache eviction policy for use with the EvictionPolicy CacheOption.