Documentation
¶
Overview ¶
Package cache provides TTL-based caching for signal processing.
The TTLCache provides thread-safe caching with automatic expiration. It is used by the K8s Enricher to cache namespace lookups and reduce API server load.
Per IMPLEMENTATION_PLAN_V1.21.md Day 3 specification.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TTLCache ¶
type TTLCache struct {
// contains filtered or unexported fields
}
TTLCache provides thread-safe caching with automatic TTL expiration.
func NewTTLCache ¶
NewTTLCache creates a new TTLCache with the specified TTL duration.
func (*TTLCache) Get ¶
Get retrieves a value from the cache. Returns the value and true if found and not expired, nil and false otherwise.
Click to show internal directories.
Click to hide internal directories.