MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / get_cache_dir

Function get_cache_dir

src/cli/cli.c:2617–2627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2615/* ── Index management ─────────────────────────────────────────── */
2616
2617static const char *get_cache_dir(const char *home_dir) {
2618 static char buf[CLI_BUF_1K];
2619 if (!home_dir) {
2620 home_dir = cbm_get_home_dir();
2621 }
2622 if (!home_dir) {
2623 return NULL;
2624 }
2625 snprintf(buf, sizeof(buf), "%s", cbm_resolve_cache_dir());
2626 return buf;
2627}
2628
2629int cbm_list_indexes(const char *home_dir) {
2630 const char *cache_dir = get_cache_dir(home_dir);

Callers 3

cbm_list_indexesFunction · 0.85
cbm_remove_indexesFunction · 0.85
count_db_indexesFunction · 0.85

Calls 2

cbm_get_home_dirFunction · 0.85
cbm_resolve_cache_dirFunction · 0.85

Tested by

no test coverage detected