SysCache.java 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. package com.ruoyi.system.domain;
  2. import com.ruoyi.common.utils.StringUtils;
  3. /**
  4. * 缓存信息
  5. *
  6. * @author ruoyi
  7. */
  8. public class SysCache
  9. {
  10. /** 缓存名称 */
  11. private String cacheName = "";
  12. /** 缓存键名 */
  13. private String cacheKey = "";
  14. /** 缓存内容 */
  15. private String cacheValue = "";
  16. /** 备注 */
  17. private String remark = "";
  18. public SysCache()
  19. {
  20. }
  21. public SysCache(String cacheName, String remark)
  22. {
  23. this.cacheName = cacheName;
  24. this.remark = remark;
  25. }
  26. public SysCache(String cacheName, String cacheKey, String cacheValue)
  27. {
  28. this.cacheName = StringUtils.replace(cacheName, ":", "");
  29. this.cacheKey = StringUtils.replace(cacheKey, cacheName, "");
  30. this.cacheValue = cacheValue;
  31. }
  32. public String getCacheName()
  33. {
  34. return cacheName;
  35. }
  36. public void setCacheName(String cacheName)
  37. {
  38. this.cacheName = cacheName;
  39. }
  40. public String getCacheKey()
  41. {
  42. return cacheKey;
  43. }
  44. public void setCacheKey(String cacheKey)
  45. {
  46. this.cacheKey = cacheKey;
  47. }
  48. public String getCacheValue()
  49. {
  50. return cacheValue;
  51. }
  52. public void setCacheValue(String cacheValue)
  53. {
  54. this.cacheValue = cacheValue;
  55. }
  56. public String getRemark()
  57. {
  58. return remark;
  59. }
  60. public void setRemark(String remark)
  61. {
  62. this.remark = remark;
  63. }
  64. }