Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache[V any] struct { // contains filtered or unexported fields }
Cache is a generic key‑value store where each entry expires after a fixed TTL. Key is always string; value is any comparable type V.
Expired entries are lazily removed when Get is called. Use Remove for proactive deletion. Safe for concurrent use.
Click to show internal directories.
Click to hide internal directories.