MCPcopy Create free account
hub / github.com/Rfym21/Qwen2API / isCacheExpired

Function isCacheExpired

src/models/models-map.js:14–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12let fetchPromise = null
13
14// 缓存是否已过期(modelsCacheTtl = 0 表示永不过期)
15const isCacheExpired = () => {
16 return config.modelsCacheTtl > 0 && Date.now() - cachedModelsAt > config.modelsCacheTtl * 1000
17}
18
19const getLatestModels = async (force = false) => {

Callers 1

getLatestModelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected