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.

22 lines
407B

  1. using System;
  2. namespace HealthMonitor.Util.Common.Cache
  3. {
  4. /// <summary>
  5. /// 持久化到缓存
  6. /// </summary>
  7. [AttributeUsage(AttributeTargets.Class, Inherited = false)]
  8. public class DurableCacheEntityAttr : Attribute
  9. {
  10. /// <summary>
  11. /// 单位秒
  12. /// </summary>
  13. public int Duration { get; private set; }
  14. public DurableCacheEntityAttr(int duration)
  15. {
  16. Duration = duration;
  17. }
  18. }
  19. }