[Add] AutoCleanTimer, Cleanable 增加缓存库自动清理;

[Update] HotDataCacheStore 增加对自动清理的支持;
[Change] RedisPoolCacheStore 将Redis缓存库抽象类设为default(原public);
[Change] MiraiMessageSender, BotCommandProcess 适配HotDataCacheStore的修改;
[Change] BotCommandProcess 调整ranking命令的输出格式;
This commit is contained in:
2020-05-07 10:26:11 +08:00
parent a36eb713d7
commit aabd35ce71
6 changed files with 87 additions and 11 deletions

View File

@ -33,7 +33,7 @@ public class MiraiMessageSender implements MessageSender {
private final static CacheStore<String> imageIdCache = new HotDataCacheStore<>(
new StringRedisCacheStore(BotEventHandler.redisServer, "mirai.imageId"),
new LocalHashCacheStore<>(),
5400000, 1800000);
5400000, 1800000, true);
/**
* 使用id构造发送器