public interface CacheService
| 限定符和类型 | 字段和说明 |
|---|---|
static Integer |
DEFAULT_IMG_CAPACITY |
static Integer |
DEFAULT_PDF_CAPACITY |
static Integer |
DEFAULT_PDFIMG_CAPACITY |
static String |
REDIS_FILE_PREVIEW_IMGS_KEY |
static String |
REDIS_FILE_PREVIEW_PDF_IMGS_KEY |
static String |
REDIS_FILE_PREVIEW_PDF_KEY |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addQueueTask(String url) |
void |
cleanCache() |
Map<String,List<String>> |
getImgCache() |
List<String> |
getImgCache(String key) |
Map<String,String> |
getPDFCache() |
String |
getPDFCache(String key) |
Integer |
getPdfImageCache(String key) |
void |
initIMGCachePool(Integer capacity) |
void |
initPDFCachePool(Integer capacity) |
void |
initPdfImagesCachePool(Integer capacity) |
void |
putImgCache(String key,
List<String> value) |
void |
putPDFCache(String key,
String value) |
void |
putPdfImageCache(String pdfFilePath,
int num) |
String |
takeQueueTask() |
static final Integer DEFAULT_PDF_CAPACITY
static final Integer DEFAULT_IMG_CAPACITY
static final Integer DEFAULT_PDFIMG_CAPACITY
void initPDFCachePool(Integer capacity)
void initIMGCachePool(Integer capacity)
void initPdfImagesCachePool(Integer capacity)
void putPdfImageCache(String pdfFilePath, int num)
void cleanCache()
void addQueueTask(String url)
String takeQueueTask() throws InterruptedException
Copyright © 2019. All rights reserved.