RedisCacheResponseTimeLog.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package com.yihu.ehr.redis.cache.entity;
  2. import com.yihu.ehr.entity.BaseAssignedEntity;
  3. import javax.persistence.Column;
  4. import javax.persistence.Entity;
  5. import javax.persistence.Table;
  6. /**
  7. * 缓存获取的响应时间日志 entity
  8. *
  9. * @author 张进军
  10. * @date 2017/12/4 08:56
  11. */
  12. @Entity
  13. @Table(name = "redis_cache_response_time_log")
  14. public class RedisCacheResponseTimeLog extends BaseAssignedEntity {
  15. private String cacheKey; // 缓存Key
  16. private String categoryCode; // 缓存分类编码
  17. private long responseTime; // 响应时长,单位毫秒
  18. @Column(name = "cache_key", nullable = false)
  19. public String getCacheKey() {
  20. return cacheKey;
  21. }
  22. public void setCacheKey(String cacheKey) {
  23. this.cacheKey = cacheKey;
  24. }
  25. @Column(name = "category_code", nullable = false)
  26. public String getCategoryCode() {
  27. return categoryCode;
  28. }
  29. public void setCategoryCode(String categoryCode) {
  30. this.categoryCode = categoryCode;
  31. }
  32. @Column(name = "response_time", nullable = false)
  33. public long getResponseTime() {
  34. return responseTime;
  35. }
  36. public void setResponseTime(long responseTime) {
  37. this.responseTime = responseTime;
  38. }
  39. }