Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultTTL = 30 * time.Minute
DefaultTTL is how long a cache entry stays valid.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
Load reads a cache entry into v. It reports whether a fresh entry (younger than ttl) was found. Any read/parse problem is treated as a cache miss.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.