支持自动清理预览文件及缓存

This commit is contained in:
陈精华
2019-06-11 09:53:39 +08:00
committed by kl
parent 13123f8f9d
commit cf1ee9c631
7 changed files with 96 additions and 10 deletions

View File

@ -20,7 +20,7 @@ public interface CacheService {
void initPDFCachePool(Integer capacity);
void initIMGCachePool(Integer capacity);
public void initPdfImagesCachePool(Integer capacity);
void initPdfImagesCachePool(Integer capacity);
void putPDFCache(String key, String value);
void putImgCache(String key, List<String> value);
Map<String, String> getPDFCache();
@ -30,7 +30,11 @@ public interface CacheService {
Integer getPdfImageCache(String key);
void putPdfImageCache(String pdfFilePath, int num);
void cleanCache();
void addQueueTask(String url);
String takeQueueTask() throws InterruptedException;
}