Commit 6b744d77 authored by 陈精华's avatar 陈精华 Committed by kl

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

parent ba57dede
...@@ -92,7 +92,7 @@ public class CacheServiceRocksDBImpl implements CacheService { ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment