mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
mongo配置
This commit is contained in:
3
lib/cache/cache_manager.js
vendored
3
lib/cache/cache_manager.js
vendored
@@ -2,10 +2,9 @@ import MemoryCache from './memory_cache'
|
||||
import FileCache from './local_file_cache'
|
||||
import MongoCache from './mongo_db_cache'
|
||||
const enableCache = true
|
||||
const enableMongoCache = true
|
||||
|
||||
let api
|
||||
if (enableMongoCache) {
|
||||
if (process.env.MONGO_DB_URL && process.env.MONGO_DB_NAME) {
|
||||
api = MongoCache
|
||||
} else if (process.env.ENABLE_FILE_CACHE) {
|
||||
api = FileCache
|
||||
|
||||
Reference in New Issue
Block a user