|
|
@ -218,6 +218,7 @@ public class CacheServiceRocksDBImpl implements CacheService {
|
|
|
|
cleanPdfCache();
|
|
|
|
cleanPdfCache();
|
|
|
|
cleanImgCache();
|
|
|
|
cleanImgCache();
|
|
|
|
cleanPdfImgCache();
|
|
|
|
cleanPdfImgCache();
|
|
|
|
|
|
|
|
cleanMediaConvertCache();
|
|
|
|
} catch (IOException | RocksDBException e) {
|
|
|
|
} catch (IOException | RocksDBException e) {
|
|
|
|
LOGGER.error("Clean Cache Exception" + e);
|
|
|
|
LOGGER.error("Clean Cache Exception" + e);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -281,4 +282,9 @@ public class CacheServiceRocksDBImpl implements CacheService {
|
|
|
|
Map<String, Integer> initPDFIMGCache = new HashMap<>();
|
|
|
|
Map<String, Integer> initPDFIMGCache = new HashMap<>();
|
|
|
|
db.put(FILE_PREVIEW_PDF_IMGS_KEY.getBytes(), toByteArray(initPDFIMGCache));
|
|
|
|
db.put(FILE_PREVIEW_PDF_IMGS_KEY.getBytes(), toByteArray(initPDFIMGCache));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void cleanMediaConvertCache() throws IOException, RocksDBException {
|
|
|
|
|
|
|
|
Map<String, String> initMediaConvertCache = new HashMap<>();
|
|
|
|
|
|
|
|
db.put(FILE_PREVIEW_MEDIA_CONVERT_KEY.getBytes(), toByteArray(initMediaConvertCache));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|