Documentation
¶
Overview ¶
Package cache provides TTL-based on-disk JSON caching for remote API responses. Cache files are stored under ~/.cache/devcell/ (or $XDG_CACHE_HOME/devcell/).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dir ¶
func Dir() string
Dir returns the devcell cache directory. Respects $XDG_CACHE_HOME; falls back to ~/.cache/devcell.
func Has ¶
Has returns true if a valid, non-expired cache entry exists for key. Useful for logging "cached vs network" before calling a fetch function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.