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