Files
Core.Thalos.DAL.API/Core.Thalos.Infraestructure/PerformanceCacheService/CacheAttribute.cs
Sergio Matias Urquin 24efe5612c reeplace cerberos by talos
2025-05-18 19:11:08 -06:00

16 lines
526 B
C#

namespace Core.Thalos.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;
}
}
}