修复:RocksDB缓存实现压缩包图片url缓存失效

pull/12/head
陈精华 2019-09-02 17:30:23 +08:00 committed by kl
parent ba57dedebb
commit 6b744d77c7
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ public class CacheServiceRocksDBImpl implements CacheService {
try { try {
Map<String, List<String>> imgCacheItem = getImgCache(); Map<String, List<String>> imgCacheItem = getImgCache();
imgCacheItem.put(key, value); imgCacheItem.put(key, value);
db.put(REDIS_FILE_PREVIEW_PDF_KEY.getBytes(), toByteArray(imgCacheItem)); db.put(REDIS_FILE_PREVIEW_IMGS_KEY.getBytes(), toByteArray(imgCacheItem));
} catch (RocksDBException | IOException e) { } catch (RocksDBException | IOException e) {
LOGGER.error("Put into RocksDB Exception" + e); LOGGER.error("Put into RocksDB Exception" + e);
} }