Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
getAllTasks
Method · 0.95
Calls
1
now
Method · 0.80
Tested by
no test coverage detected