Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/upstash/context7
/ getCacheDir
Function
getCacheDir
packages/cli/src/utils/storage-paths.ts:30–32 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
28
}
29
30
export
function
getCacheDir(): string {
31
return
xdgBase(
"XDG_CACHE_HOME"
,
".cache"
);
32
}
33
34
export
function
getCredentialsFilePath(): string {
35
return
path.join(getConfigDir(), CREDENTIALS_FILE_NAME);
Callers
2
getPreviewsDir
Function · 0.85
storage-paths.test.ts
File · 0.85
Calls
1
xdgBase
Function · 0.85
Tested by
no test coverage detected