类 DefaultCaptchaService
java.lang.Object
cn.zhxu.toys.captcha.impl.DefaultCaptchaService
- 所有已实现的接口:
CaptchaService
验证码 Redis 存储器
- 作者:
- Troy
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void删除验证码findCaptcha(String captchaId) 根据手机号取得验证码intvoid保存验证码voidsetCacheSeconds(int cacheSeconds) voidsetCacheService(CacheService cacheService) voidsetKeyPrefix(String keyPrefix)
-
构造器详细资料
-
DefaultCaptchaService
public DefaultCaptchaService() -
DefaultCaptchaService
-
-
方法详细资料
-
findCaptcha
从接口复制的说明:CaptchaService根据手机号取得验证码- 指定者:
findCaptcha在接口中CaptchaService
-
save
从接口复制的说明:CaptchaService保存验证码- 指定者:
save在接口中CaptchaService
-
delete
从接口复制的说明:CaptchaService删除验证码- 指定者:
delete在接口中CaptchaService
-
getKeyPrefix
-
setKeyPrefix
-
getCacheService
-
setCacheService
-
getCacheSeconds
public int getCacheSeconds() -
setCacheSeconds
public void setCacheSeconds(int cacheSeconds)
-