Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

for issue/#5933 增加清除缓存方法 #109

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,27 @@ public static InputStream getFile(String id) {
return null;
}

//update-begin---author:chenrui ---date:20240403 for:[issue/#5933]增加清除缓存方法------------
/**
* 清除所有缓存
*
* @author chenrui
* @date 2024/4/3 11:46
*/
public static void cleanAll() {
loadingCache.invalidateAll();
}

/**
* 清除缓存
*
* @param id 缓存key
* @author chenrui
* @date 2024/4/3 11:46
*/
public static void clean(String id) {
loadingCache.invalidate(id);
}
//update-end---author:chenrui ---date:20240403 for:[issue/#5933]增加清除缓存方法------------

}
4 changes: 4 additions & 0 deletions docs/修改日志.log
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ autopoi-web/src/test/resources/templates/testNextMarge.xlsx
autopoi/src/main/java/org/jeecgframework/poi/excel/annotation/Excel.java
autopoi/src/main/java/org/jeecgframework/poi/excel/ExcelExportUtil.java
---author:chenrui---date:2024/1/3-----for:[issue/#5248]加强继承扩展便利性---

---author:chenrui---date:2024/4/3-----for:[issue/#5933]增加清除缓存方法---
autopoi/src/main/java/org/jeecgframework/poi/cache/manager/POICacheManager.java
---author:chenrui---date:2024/4/3-----for:[issue/#5933]增加清除缓存方法---