You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
356 B
17 lines
356 B
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;
|
|
}
|
|
}
|