MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / CaptchaDeleteCacheKey

Function CaptchaDeleteCacheKey

internal/waf/captcha_counter.go:40–45  ·  view source on GitHub ↗

CaptchaDeleteCacheKey 清除计数

(req requests.Request)

Source from the content-addressed store, hash-verified

38
39// CaptchaDeleteCacheKey 清除计数
40func 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
48func CaptchaCacheKey(req requests.Request, pageCode CaptchaPageCode) string {

Callers 4

validateOneClickFormMethod · 0.85
validateSlideFormMethod · 0.85
validateGeeTestFormMethod · 0.85

Calls 2

CaptchaCacheKeyFunction · 0.85
ResetKeyMethod · 0.80

Tested by

no test coverage detected