CacheManagerEntity.java 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. package com.ruoyi.common.utils.cache;
  2. public class CacheManagerEntity {
  3. /**
  4. * 保存的数据
  5. */
  6. private Object datas;
  7. /**
  8. * 设置数据失效时间,为0表示永不失效
  9. */
  10. private long timeOut;
  11. /**
  12. * 最后刷新时间
  13. */
  14. private long lastRefeshTime;
  15. public CacheManagerEntity(Object datas) {
  16. this.datas = datas;
  17. }
  18. public CacheManagerEntity(Object datas, long timeOut, long lastRefeshTime) {
  19. this.datas = datas;
  20. this.timeOut = timeOut;
  21. this.lastRefeshTime = lastRefeshTime;
  22. }
  23. public Object getDatas() {
  24. return datas;
  25. }
  26. public void setDatas(Object datas) {
  27. this.datas = datas;
  28. }
  29. public long getTimeOut() {
  30. return timeOut;
  31. }
  32. public void setTimeOut(long timeOut) {
  33. this.timeOut = timeOut;
  34. }
  35. public long getLastRefeshTime() {
  36. return lastRefeshTime;
  37. }
  38. public void setLastRefeshTime(long lastRefeshTime) {
  39. this.lastRefeshTime = lastRefeshTime;
  40. }
  41. }