MCPcopy Create free account
hub / github.com/Datakitpage/Datakit / has

Method has

backend/api/src/postgres-proxy/utils/cache.util.ts:112–115  ·  view source on GitHub ↗

* Checks if a key exists in cache (without updating access stats)

(key: string)

Source from the content-addressed store, hash-verified

110 * Checks if a key exists in cache (without updating access stats)
111 */
112 has(key: string): boolean {
113 const entry = this.cache.get(key);
114 return entry !== undefined && !this.isExpired(entry);
115 }
116
117 /**
118 * Deletes a specific key from cache

Callers 15

renderNodeFunction · 0.80
AISettingsFunction · 0.80
isProviderReadyFunction · 0.80
VariableInspectorFunction · 0.80
toggleExpandedFunction · 0.80
toggleTypeFilterFunction · 0.80
PackageManagerFunction · 0.80
handleInstallPackageFunction · 0.80
handlePullModelFunction · 0.80
ApiKeyModalFunction · 0.80
fetchOllamaModelsFunction · 0.80
hasApiKeyFunction · 0.80

Calls 2

isExpiredMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected