2022-12-02 15:03:34 +01:00

17 lines
356 B
C#

namespace Connected.Caching;
public class EntryOptions
{
public string Key { get; set; }
public string? KeyProperty { get; set; }
public TimeSpan Duration { get; set; }
public bool SlidingExpiration { get; set; }
public bool AllowNull { get; set; }
public EntryOptions()
{
Duration = TimeSpan.FromMinutes(5);
SlidingExpiration = true;
}
}