Ex2 (integrado): decorator de cache para IWorkshopRepository + TTL por Options
This commit is contained in:
6
Services/CacheSettings.cs
Normal file
6
Services/CacheSettings.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace CampusWorkshops.Api.Services;
|
||||
|
||||
public sealed class CacheSettings
|
||||
{
|
||||
public int DefaultTtlSeconds { get; set; } = 15;
|
||||
}
|
||||
Reference in New Issue
Block a user