| 程序包 | 说明 |
|---|---|
| cn.stylefeng.roses.kernel.security.api |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
CountValidatorApi.countAndValidate(String key,
Long timeWindowSeconds,
Long timeWindowMaxCount)
记录key的操作次数加1,并校验次数是否在当前时间窗内超标
|
Copyright © 2021. All rights reserved.