File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/main/java/org/xiaowu/behappy/redis/config Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,14 +45,14 @@ static class CacheConfig {
4545 private String key ;
4646
4747 /**
48- * 单位毫秒
48+ * 单位秒
4949 * 过期时间
5050 * 默认永久保存
5151 */
5252 private long ttl = 0 ;
5353
5454 /**
55- * 单位毫秒
55+ * 单位秒
5656 * 最长空闲时间
5757 * 默认永久保存
5858 */
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ public CacheManager cacheManager(RedissonClient redisson) {
118118 if (!CollectionUtils .isEmpty (beHappyRedisProperties .getCacheManager ().getConfigs ())) {
119119 beHappyRedisProperties .getCacheManager ().getConfigs ().forEach (e -> {
120120 String cacheName = beHappyRedisProperties .getCacheManager ().getPrefix ().concat (":" ).concat (e .getKey ()).concat (":" );
121- CacheConfig cacheConfig = new CacheConfig (e .getTtl () * 60 * 1000 , e .getMaxIdleTime () * 60 * 1000 );
121+ CacheConfig cacheConfig = new CacheConfig (e .getTtl () * 1000 , e .getMaxIdleTime () * 1000 );
122122 cacheConfig .setMaxSize (e .getMaxSize ());
123123 redisCacheConfigurationMap .put (cacheName , cacheConfig );
124124 });
You can’t perform that action at this time.
0 commit comments