DD.WellWorkover.Cloud/AsbCloudInfrastructure/Services/Cache/CacheTableDataStore.cs
2021-11-11 10:57:08 +05:00

16 lines
462 B
C#

using System;
using System.Collections;
namespace AsbCloudInfrastructure.Services.Cache
{
class CacheTableDataStore
{
public string NameOfTEntity { get; set; }
public DateTime LastResreshDate { get; set; }
public IEnumerable Entities { get; set; }
public TimeSpan ObsolesenceTime { get; set; } = TimeSpan.FromMinutes(15);
public bool IsObsolete => (DateTime.Now - LastResreshDate > ObsolesenceTime);
}
}