forked from ddrilling/AsbCloudServer
18 lines
563 B
C#
18 lines
563 B
C#
using System;
|
|
using System.Collections;
|
|
|
|
namespace AsbCloudInfrastructure.Services.Cache
|
|
{
|
|
class CacheTableDataStore
|
|
{
|
|
public string NameOfTEntity { get; set; }
|
|
public DateTime LastResreshDate { get; set; }
|
|
|
|
//public ISet<string> Includes { get; set; } //TODO: this prop change should update entities
|
|
public IEnumerable Entities { get; set; }
|
|
public TimeSpan ObsolesenceTime { get; set; } = TimeSpan.FromMinutes(15);
|
|
public bool IsObsolete => (DateTime.Now - LastResreshDate > ObsolesenceTime);
|
|
|
|
}
|
|
}
|