|
@@ -73,7 +73,7 @@ public final class RedisUtils {
|
|
|
|
|
|
// 设置key的过期时间,避免计数器无限增长
|
|
// 设置key的过期时间,避免计数器无限增长
|
|
if (increment != null && increment.equals(1L)) {
|
|
if (increment != null && increment.equals(1L)) {
|
|
- redisTemplate.expire(key, 30, TimeUnit.MINUTES);
|
|
|
|
|
|
+ redisTemplate.expire(key, 15, TimeUnit.MINUTES);
|
|
}
|
|
}
|
|
|
|
|
|
// 检查是否超过限流阈值
|
|
// 检查是否超过限流阈值
|