Commit a733488c by 王祖波

Merge branch 'feature-chat-activity' into 'master'

增加缓存大小

See merge request !2366
parents 30cf278b 8883bd2f
......@@ -42,7 +42,7 @@ public class ImageCombined {
private static final Logger logger = LoggerFactory.getLogger(ImageCombined.class);
private static final Cache<String, BufferedImage> imageCache = Caffeine.newBuilder()
.maximumWeight(100 * 1024 * 1024) // 100MB
.maximumWeight(200 * 1024 * 1024) // 100MB
.weigher((String key, BufferedImage image) -> image.getWidth() * image.getHeight() * 3)
.removalListener((key, value, cause) -> {
logger.info("移除缓存:{}",key);
......
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