MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isFresh

Function isFresh

apps/cloud/src/auth/jwks-cache.ts:282–282  ·  view source on GitHub ↗
(candidate: CacheEntry)

Source from the content-addressed store, hash-verified

280 let lastResolveMs: number | null = null;
281
282 const isFresh = (candidate: CacheEntry): boolean => Date.now() - candidate.fetchedAt < ttlMs;
283 const isUsable = (candidate: CacheEntry): boolean =>
284 Date.now() - candidate.fetchedAt < staleMaxMs;
285

Callers 1

ensureFreshFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected