using System; namespace HealthMonitor.Util.Common.Cache { /// /// 持久化到缓存 /// [AttributeUsage(AttributeTargets.Class, Inherited = false)] public class DurableCacheEntityAttr : Attribute { /// /// 单位秒 /// public int Duration { get; private set; } public DurableCacheEntityAttr(int duration) { Duration = duration; } } }