q-koa 13.8.59 → 13.8.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/app.js +2 -1
- package/package.json +1 -1
package/core/app.js
CHANGED
|
@@ -684,7 +684,8 @@ class APP {
|
|
|
684
684
|
|
|
685
685
|
this.app[appName].cache = new LRUCache({
|
|
686
686
|
max: cacheConfig.max,
|
|
687
|
-
ttl
|
|
687
|
+
// 兼容业务方两种写法:lru-cache v11 的 ttl 或旧版 maxAge
|
|
688
|
+
ttl: cacheConfig.ttl || cacheConfig.maxAge,
|
|
688
689
|
})
|
|
689
690
|
|
|
690
691
|
await this.initModel(appName)
|