缓存优化
This commit is contained in:
tangly1024
2021-12-16 22:01:59 +08:00
parent 54026de51b
commit 6dc1794bdf
6 changed files with 80 additions and 27 deletions

View File

@@ -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)
}