Skip to content

Commit

Permalink
[fix] after merge build error
Browse files Browse the repository at this point in the history
  • Loading branch information
expoli committed Jan 24, 2025
1 parent ea72717 commit 05395c5
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions lib/cache/cache_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,6 @@ export async function delCacheData(key) {
await getApi().delCache(key)
}

/**
* 缓存实现类
* @returns
*/
export function getApi() {
if (BLOG.REDIS_URL) {
return RedisCache
} else if (process.env.ENABLE_FILE_CACHE) {
return FileCache
} else {
return MemoryCache
}
}

/**
* 缓存实现类
* @returns
Expand Down

0 comments on commit 05395c5

Please sign in to comment.