类 DefaultCaptchaService

java.lang.Object
cn.zhxu.toys.captcha.impl.DefaultCaptchaService
所有已实现的接口:
CaptchaService

public class DefaultCaptchaService extends Object implements CaptchaService
验证码 Redis 存储器
作者:
Troy
  • 构造器详细资料

    • DefaultCaptchaService

      public DefaultCaptchaService()
    • DefaultCaptchaService

      public DefaultCaptchaService(CacheService cacheService)
  • 方法详细资料

    • findCaptcha

      public Captcha findCaptcha(String captchaId)
      从接口复制的说明: CaptchaService
      根据手机号取得验证码
      指定者:
      findCaptcha 在接口中 CaptchaService
    • save

      public void save(String captchaId, String code, int expireSeconds)
      从接口复制的说明: CaptchaService
      保存验证码
      指定者:
      save 在接口中 CaptchaService
    • delete

      public void delete(String captchaId)
      从接口复制的说明: CaptchaService
      删除验证码
      指定者:
      delete 在接口中 CaptchaService
    • getKeyPrefix

      public String getKeyPrefix()
    • setKeyPrefix

      public void setKeyPrefix(String keyPrefix)
    • getCacheService

      public CacheService getCacheService()
    • setCacheService

      public void setCacheService(CacheService cacheService)
    • getCacheSeconds

      public int getCacheSeconds()
    • setCacheSeconds

      public void setCacheSeconds(int cacheSeconds)