diff --git a/autopoi/src/main/java/org/jeecgframework/poi/cache/manager/POICacheManager.java b/autopoi/src/main/java/org/jeecgframework/poi/cache/manager/POICacheManager.java index a08dbbb..e0ce45c 100644 --- a/autopoi/src/main/java/org/jeecgframework/poi/cache/manager/POICacheManager.java +++ b/autopoi/src/main/java/org/jeecgframework/poi/cache/manager/POICacheManager.java @@ -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]增加清除缓存方法------------ + } diff --git "a/docs/\344\277\256\346\224\271\346\227\245\345\277\227.log" "b/docs/\344\277\256\346\224\271\346\227\245\345\277\227.log" index 12c0d20..332b2d7 100644 --- "a/docs/\344\277\256\346\224\271\346\227\245\345\277\227.log" +++ "b/docs/\344\277\256\346\224\271\346\227\245\345\277\227.log" @@ -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]增加清除缓存方法--- \ No newline at end of file