Expand description
Shared on-disk locations. gqls keeps everything cacheable under one base
dir ($XDG_CACHE_HOME/gqls, else ~/.cache/gqls) — embedding vectors, the
introspection response cache, and the background-warm lockfiles.
Functions§
- cache_
dir - Base cache directory, or
Noneif neitherXDG_CACHE_HOMEnorHOMEis set. - display
- Render a path for display, shortening the home directory to
~. - temp_
dir - Directory for ephemeral files (the background-warm single-flight lockfiles).
The system temp dir so the OS reaps them — they never litter the cache. It’s
per-user on macOS (
$TMPDIR) and/tmpon Linux, and stable within a login, so concurrent gqls processes still see the same lock.