namespace Core.Cerberos.Infraestructure.PerformanceCacheService { [AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = false)] public class CacheAttribute : Attribute { public int CacheDurationInMinutes { get; set; } public bool EnableCaching { get; set; } public CacheAttribute(int cacheDurationInMinutes, bool enableCaching = true) { CacheDurationInMinutes = cacheDurationInMinutes; EnableCaching = enableCaching; } } }