golazy.dev golazy.dev / lazycache / inmemorycache Index | Files

package inmemorycache

import "golazy.dev/lazycache/inmemorycache"

Package inmemorycache provides the default in-process lazycache backend.

lazyapp uses this package when an application does not configure another cache backend. Direct use is appropriate for tests, single-process apps, or custom lazycache setup that wants the same LRU implementation.

Functions

Types

type Algorithm

Algorithm names the eviction algorithm used by the cache.

type Algorithm string