mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-18 07:26:48 +00:00
feat(支持配置REDIS_URL):
This commit is contained in:
2
lib/cache/cache_manager.js
vendored
2
lib/cache/cache_manager.js
vendored
@@ -41,7 +41,7 @@ export async function delCacheData(key) {
|
||||
* @returns
|
||||
*/
|
||||
function getApi() {
|
||||
if (process.env.REDIS_URL) {
|
||||
if (BLOG.REDIS_URL) {
|
||||
return RedisCache
|
||||
} else if (process.env.ENABLE_FILE_CACHE) {
|
||||
return FileCache
|
||||
|
||||
Reference in New Issue
Block a user