移除mongodb

This commit is contained in:
tangly1024.com
2024-04-09 18:21:04 +08:00
parent 43f03a41e8
commit 295d29787e
4 changed files with 5 additions and 1080 deletions

View File

@@ -1,7 +1,6 @@
import MemoryCache from './memory_cache'
import FileCache from './local_file_cache'
import MongoCache from './mongo_db_cache'
import BLOG from '@/blog.config'
import FileCache from './local_file_cache'
import MemoryCache from './memory_cache'
/**
* 为减少频繁接口请求notion数据将被缓存
@@ -39,9 +38,7 @@ export async function delCacheData(key) {
* @returns
*/
function getApi() {
if (process.env.MONGO_DB_URL && process.env.MONGO_DB_NAME) {
return MongoCache
} else if (process.env.ENABLE_FILE_CACHE) {
if (process.env.ENABLE_FILE_CACHE) {
return FileCache
} else {
return MemoryCache