fix(core): MEMORY_MAX should be an integer (#9352)
This commit is contained in:
parent
db78d3d275
commit
10118b004f
|
|
@ -50,7 +50,7 @@ const calculateValue = () => {
|
|||
contentExpire: parseInt(envs.CACHE_CONTENT_EXPIRE) || 1 * 60 * 60, // 不变内容缓存时间,单位为秒
|
||||
},
|
||||
memory: {
|
||||
max: envs.MEMORY_MAX || Math.pow(2, 8), // The maximum number of items that remain in the cache. This must be a positive finite intger.
|
||||
max: parseInt(envs.MEMORY_MAX) || Math.pow(2, 8), // The maximum number of items that remain in the cache. This must be a positive finite intger.
|
||||
// https://github.com/isaacs/node-lru-cache#options
|
||||
},
|
||||
redis: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue