Topics: Caching Application Block
Dec 2, 2008 at 10:48 PM

I was trying out the enterprise library cache for storing some of the application specific data during startup.
In my case the when ever the data is changed i get a notification from a different application server/WMI provider.

I wanted to update the cache immediately once i received this callbacks from a different application server/WMI provider.

What's the best way to do this.

I was exploring the Cache implementation and found that ExpirationPollFrequencyInSecond parameter
value the BackgroundScheduler will determine when to expire the cache.

In my case i would like to update the cache as soon as i get a callback from the external
servers and not to wait for the BackgroundScheduler to get its turn.

Is there any way to accomplish this?. Any help is greatly appreciated.


Dec 3, 2008 at 2:45 AM
You could implement an ICacheItemRefreshAction... see this thread,

Sarah Urmeneta
Global Technology & Solutions
Avanade, Inc.