Update memory_cache.js

This commit is contained in:
tangly1024
2022-01-07 22:08:13 +08:00
committed by GitHub
parent f84409e97f
commit 6e53e75b0c

View File

@@ -1,7 +1,7 @@
import cache from 'memory-cache'
import BLOG from 'blog.config'
const cacheTime = BLOG.isProd ? 20 : 120 * 60 // 120 minutes for dev,10 minutes for prod
const cacheTime = BLOG.isProd ? 10 * 60 : 120 * 60 // 120 minutes for dev,10 minutes for prod
export async function getCacheFromMemory (key, options) {
return cache.get(key)