CaptchaDeleteCacheKey 清除计数
(req requests.Request)
| 38 | |
| 39 | // CaptchaDeleteCacheKey 清除计数 |
| 40 | func CaptchaDeleteCacheKey(req requests.Request) { |
| 41 | counters.SharedCounter.ResetKey(CaptchaCacheKey(req, CaptchaPageCodeInit)) |
| 42 | counters.SharedCounter.ResetKey(CaptchaCacheKey(req, CaptchaPageCodeShow)) |
| 43 | counters.SharedCounter.ResetKey(CaptchaCacheKey(req, CaptchaPageCodeImage)) |
| 44 | counters.SharedCounter.ResetKey(CaptchaCacheKey(req, CaptchaPageCodeSubmit)) |
| 45 | } |
| 46 | |
| 47 | // CaptchaCacheKey 获取Captcha缓存Key |
| 48 | func CaptchaCacheKey(req requests.Request, pageCode CaptchaPageCode) string { |
no test coverage detected