平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

43 lines
675 B

  1. //
  2. namespace SafeCampus.Plugin.Aop;
  3. /// <summary>
  4. /// 缓存结果特性
  5. /// </summary>
  6. public class CacheAttribute : Attribute
  7. {
  8. /// <summary>
  9. /// RedisKey前缀
  10. /// </summary>
  11. public string KeyPrefix { get; set; }
  12. /// <summary>
  13. /// 过期时间
  14. /// </summary>
  15. public TimeSpan? AbsoluteExpiration { get; set; }
  16. /// <summary>
  17. /// 自定义KEY
  18. /// </summary>
  19. public string CustomKeyValue { get; set; }
  20. /// <summary>
  21. /// 是否删除
  22. /// </summary>
  23. public bool IsDelete { get; set; } = false;
  24. /// <summary>
  25. /// 存储类型
  26. /// </summary>
  27. public string StoreType { get; set; }
  28. }