Documentation
¶
Overview ¶
Package cache provides file-based caching with TTL and version support.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager provides thread-safe file-based caching with TTL and version support.
func (*Manager) Get ¶
Get loads a cached value by key. Returns true if cache is valid. target must be a pointer to the type to unmarshal into.
func (*Manager) Invalidate ¶
Invalidate removes a specific cache entry.
Click to show internal directories.
Click to hide internal directories.