G
Guest
Hello All,
I inserted an object into cache with absolute expiration using the following
code:
DateTime AbsoluteExpirationDate = DateRangesForDataLists[0,0].AddDays(1);
//Expires the next day
Cache.Insert("DataListStartEndDates",DateRangesForDataLists,null,AbsoluteExpirationDate,TimeSpan.Zero);
How can I know if the above cache object expired or not before accessing? Is
there any API in cache class that I could use?
Any pointers?
Thank you.
I inserted an object into cache with absolute expiration using the following
code:
DateTime AbsoluteExpirationDate = DateRangesForDataLists[0,0].AddDays(1);
//Expires the next day
Cache.Insert("DataListStartEndDates",DateRangesForDataLists,null,AbsoluteExpirationDate,TimeSpan.Zero);
How can I know if the above cache object expired or not before accessing? Is
there any API in cache class that I could use?
Any pointers?
Thank you.