MCPcopy
hub / github.com/callumalpass/tasknotes / isCacheValid

Method isCacheValid

src/views/StatsView.ts:985–988  ·  view source on GitHub ↗

* Check if stats cache is valid

()

Source from the content-addressed store, hash-verified

983 * Check if stats cache is valid
984 */
985 private isCacheValid(): boolean {
986 const now = Date.now();
987 return now - this.lastCacheTime < this.CACHE_DURATION;
988 }
989
990 /**
991 * Clear stats cache

Callers 1

getAllTasksMethod · 0.95

Calls 1

nowMethod · 0.80

Tested by

no test coverage detected