feat: add file-based quota cache with stale fallback #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "guochao/claude-statusline:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Cache provider balance data to ${XDG_RUNTIME_DIR:-~/.cache}/claude-status/${provider}.json
with a 60s TTL (mtime-based). On cache hit, skip the API call entirely. When the
API call fails but stale cache exists, serve it with a
*prefix on the summary.Add
--no-cacheflag to bypass cache reads and writes.Cache provider balance data to ${XDG_RUNTIME_DIR:-~/.cache}/claude-status/${provider}.json with a 60s TTL (mtime-based). On cache hit, skip the API call entirely. When the API call fails but stale cache exists, serve it with a `*` prefix on the summary. Add `--no-cache` flag to bypass cache reads and writes.