Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 436 Bytes

README.md

File metadata and controls

16 lines (14 loc) · 436 Bytes

limit verified

验证码限制器

redis 存储格式:

global key:
keyPrefix:{target} ----> { sendCnt -- sendCnt, codeCnt -- codeCnt }
code key:
keyPrefix:{target}:_entry_:{kind} -----> { code -- code, quota -- quota, err -- err, lasted -- lasted }

sendCnt: 发送次数
codeCnt: code 发送次数
code: code 验证码
quota: code 错误次数限制
lasted: code 发送时间