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

Method clear

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

* Clears all cache entries

()

Source from the content-addressed store, hash-verified

142 * Clears all cache entries
143 */
144 clear(): void {
145 this.cache.clear();
146 this.stats.hits = 0;
147 this.stats.misses = 0;
148 }
149
150 /**
151 * Gets cache statistics

Callers 5

destroyMethod · 0.95
parse_csvFunction · 0.80
clearAllCacheMethod · 0.80
onModuleDestroyMethod · 0.80
cache.util.spec.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected