Package ttlcache provides an in-memory cache with per-entry TTL (time-to-live) expiration.
go get github.com/ReneKroon/ttlcache/v2No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a TTL cache, set a key with 1-minute expiration, and retrieve it.
Use ttlcache.NewCache() instead of ttlcache.NewCache(ttlcache.WithTTL(...)).
No dependency data recorded yet.