Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SpecterOps/Nemesis
/ isValid
Method
isValid
projects/frontend/src/utils/fileCache.js:30–33 ·
view source on GitHub ↗
* Check if a cache entry is still valid
(entry)
Source
from the content-addressed store, hash-verified
28
* Check
if
a cache entry is still valid
29
*/
30
isValid(entry) {
31
const
age = Date.now() - entry.timestamp;
32
return
age < this.cacheDuration;
33
}
34
35
/**
36
* Get item from cache
Callers
2
get
Method · 0.95
getStats
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected