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.
Files changed (2) hide show
  1. package/core/app.js +2 -1
  2. 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: cacheConfig.maxAge,
687
+ // 兼容业务方两种写法:lru-cache v11 的 ttl 或旧版 maxAge
688
+ ttl: cacheConfig.ttl || cacheConfig.maxAge,
688
689
  })
689
690
 
690
691
  await this.initModel(appName)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "13.8.59",
3
+ "version": "13.8.60",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {