Skip to main content

Module paths

Module paths 

Source
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 None if neither XDG_CACHE_HOME nor HOME is 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 /tmp on Linux, and stable within a login, so concurrent gqls processes still see the same lock.