17 lines
356 B
C#
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;
|
|
}
|
|
}
|