MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / candidateCacheKey

Function candidateCacheKey

apps/desktop/src/main/vault.ts:1683–1693  ·  view source on GitHub ↗
(
  root: string,
  source: 'builtin' | 'ripgrep',
  paths: Required<VaultTextSearchToolPaths>
)

Source from the content-addressed store, hash-verified

1681}
1682
1683function candidateCacheKey(
1684 root: string,
1685 source: 'builtin' | 'ripgrep',
1686 paths: Required<VaultTextSearchToolPaths>
1687): string {
1688 return JSON.stringify({
1689 root: path.resolve(root),
1690 source,
1691 paths
1692 })
1693}
1694
1695export function invalidateVaultTextSearchCache(root?: string): void {
1696 if (!cachedVaultTextSearchCandidates) return

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected