CacheConstants.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. package com.ozs.common.constant;
  2. /**
  3. * 缓存的key 常量
  4. *
  5. * @author ruoyi
  6. */
  7. public class CacheConstants
  8. {
  9. /**
  10. * 登录用户 redis key
  11. */
  12. public static final String LOGIN_TOKEN_KEY = "login_tokens:";
  13. /**
  14. * 地址灾害 redis key
  15. */
  16. public static final String GEOHAZARDMONITOR_LOGIN_TOKEN_KEY = "geoHazardMonitor_login_tokens:";
  17. /**
  18. * 地址灾害app redis key
  19. */
  20. public static final String APP_TOKEN_KEY = "app_tokens:";
  21. /**
  22. * 验证码 redis key
  23. */
  24. public static final String CAPTCHA_CODE_KEY = "captcha_codes:";
  25. /**
  26. * 参数管理 cache key
  27. */
  28. public static final String SYS_CONFIG_KEY = "sys_config:";
  29. /**
  30. * 字典管理 cache key
  31. */
  32. public static final String SYS_DICT_KEY = "sys_dict:";
  33. /**
  34. * 防重提交 redis key
  35. */
  36. public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";
  37. /**
  38. * 限流 redis key
  39. */
  40. public static final String RATE_LIMIT_KEY = "rate_limit:";
  41. /**
  42. * 登录账户密码错误次数 redis key
  43. */
  44. public static final String PWD_ERR_CNT_KEY = "pwd_err_cnt:";
  45. }