MCPcopy Index your code
hub / github.com/vercel/hazel / isOutdated

Method isOutdated

lib/cache.js:170–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168 }
169
170 isOutdated() {
171 const { lastUpdate, config } = this
172 const { interval = 15 } = config
173
174 if (lastUpdate && Date.now() - lastUpdate > ms(`${interval}m`)) {
175 return true
176 }
177
178 return false
179 }
180
181 // This is a method returning the cache
182 // because the cache would otherwise be loaded

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected