2021-11-11 10:57:08 +05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudInfrastructure.Services.Cache
|
|
|
|
|
{
|
|
|
|
|
class CacheTableDataStore
|
|
|
|
|
{
|
|
|
|
|
public string NameOfTEntity { get; set; }
|
|
|
|
|
public DateTime LastResreshDate { get; set; }
|
2021-12-22 11:40:29 +05:00
|
|
|
|
|
|
|
|
|
//public ISet<string> Includes { get; set; } //TODO: this prop change should update entities
|
2021-11-11 10:57:08 +05:00
|
|
|
|
public IEnumerable Entities { get; set; }
|
2022-04-11 18:00:34 +05:00
|
|
|
|
public TimeSpan ObsolesenceTime { get; set; } = TimeSpan.FromMinutes(15);
|
2021-11-11 10:57:08 +05:00
|
|
|
|
public bool IsObsolete => (DateTime.Now - LastResreshDate > ObsolesenceTime);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|