Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultTTL = 5 * time.Minute
DefaultTTL is the default cache time-to-live
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache provides file-based caching with TTL
type CacheEntry ¶
type CacheEntry struct {
Data json.RawMessage `json:"data"`
CreatedAt time.Time `json:"created_at"`
}
CacheEntry represents a cached item with metadata
Click to show internal directories.
Click to hide internal directories.