mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
feature:
缓存优化
This commit is contained in:
2
lib/cache/memory_cache.js
vendored
2
lib/cache/memory_cache.js
vendored
@@ -5,5 +5,5 @@ export async function getCacheFromMemory (key, options) { // url为缓存标识
|
||||
}
|
||||
|
||||
export async function setCacheToMemory (key, data) { // url为缓存标识
|
||||
await cache.put(key, data, 60 * 1000)
|
||||
await cache.put(key, data, 5 * 60 * 1000)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user