public static List <Inspector> GetCached() { var CIP = new CacheItemPolicy() { AbsoluteExpiration = DateTime.Today.AddDays(1) }; return((List <Inspector>)MyCache.GetItem("inspector", CIP)); }
public static DateCache getDateCache(bool IsExternalUser, DateTime MaxScheduleDate, bool ContractorOnNotice) { var CIP = new CacheItemPolicy() { AbsoluteExpiration = DateTime.Today.AddDays(1) }; var dc = (DateCache)MyCache.GetItem("datecache," + IsExternalUser.ToString(), CIP); dc.SetMaxDate(MaxScheduleDate, ContractorOnNotice); return(dc); }
public static List <QuickRemark> GetCachedInspectionQuickRemarks() { return((List <QuickRemark>)MyCache.GetItem("quickremarks")); }
public static List <InspType> GetCachedInspectionTypes() { return((List <InspType>)MyCache.GetItem("inspectiontypes")); }