|
Group: Forum Members
Posts: 190,
Visits: 1.3K
|
Hi,
Thank you for sharing.
However, I still interested to know, how to prevent crash when I reload my cache.
As ASP.NET is multi threading, and as the sample posted using timer to reload cache. What will happen when ASPX is using the cache data, at the same time the timer fired and cache reload? As sometime we might not able to use lock() statement to handle this. For example, I bind my cache to GridView, GridView is populating row in ASPX, at the same timer triggered reload cache code executed.
Please advice
Thank you
|