类 VerifyCodeCache

java.lang.Object
net.sohelp.boot.admin.core.cache.VerifyCodeCache

@Component public class VerifyCodeCache extends Object
验证码管理Cache
从以下版本开始:
2023/12/29 9:45
作者:
AaronFung
  • 构造器详细资料

    • VerifyCodeCache

      public VerifyCodeCache()
  • 方法详细资料

    • get

      @Comment("\u6839\u636eUUID\u83b7\u53d6\u9a8c\u8bc1\u7801") public String get(@Comment("\u552f\u4e00Key") String uuid)
      根据UUID获取验证码
      参数:
      uuid - 唯一Key
      返回:
      验证码字符串,如果不存在则返回空字符串
    • put

      @Comment("\u653e\u7f6e\u9a8c\u8bc1\u5230\u7f13\u5b58") public void put(@Comment("\u552f\u4e00Key") String uuid, @Comment("\u9a8c\u8bc1\u7801") String text)
      放置验证到缓存
      参数:
      uuid - 唯一Key
      text - 验证码
    • remove

      @Comment("\u5220\u9664\u9a8c\u8bc1\u7801") public void remove(@Comment("\u552f\u4e00Key") String uuid)
      删除验证码
      参数:
      uuid - 唯一Key