hhh3112,
You can use the callback when the cache expires. you can explain a little more. I am not sure what you mean by a process that should be run at a specific hour every day.
string test = "test1";
Cache.Insert("Key", test, dependancy, DateTime.Now.AddMinutes(DateTime.Now), System.Web.Caching.Cache.NoSlidingExpiration, CacheItemPriority.High, new CacheItemRemovedCallback(CacheRemovedCallback));
public string CacheRemovedCallback(String key, object value, System.Web.Caching.CacheItemRemovedReason removedReason)
{
return = "Cache Expired for : " + key;
}
source
share