Oddur Magnusson

Object reference not set to an instance of a human being

Caching out of process

With asp.net we got the feature of being able to store session state out of the worker process, so if the asp.net application restarts (a common thing, touching the /bin or web.config file causes a restart) the session state is still there.

But why are we not able to store our cached stuff out of process also and in a aspnet_cache provider service running on our www servers ?

Why not implement a provider model for the cache, so that we can play around with our .config and /bin and cause endless .aspx recompiles without loosing our precious cache ?

I hope I will be able to find this in Whidbey , although I have not seen a word about it (note to self: Finish those PDC slides !)

UPDATE:

Just as I pushed POST I remembered the Caching Application Block for .NET which seems to provide this feature.

"Data can be cached in several formats, including a Microsoft SQL Server™ 2000 database, a memory-mapped file, or a singleton object. The Caching Application Block also includes example classes for caching, scavenging, expiration, and data protection. "

Still, I wish this was a provider for the default asp.net caching API

Comments

Paschal said:

Oddur, what's about performance if you have a cache and store in a database ?

# December 4, 2003 7:39 PM

Oddur Magnusson said:

I'm not talking about storing the cache in DB, but in memory in a service running on the WWW server, much like the aspnet_state.exe service.
# December 4, 2003 7:42 PM

scottgu@microsoft.com said:

Just posted an article that talks briefly about Whidbey's disk based output caching support: http://weblogs.asp.net/scottgu/posts/41355.aspx

Hope this helps,

Scott
# December 4, 2003 7:58 PM

TrackBack said:

# January 19, 2004 11:47 AM

pauljones said:

Hi Oddur! Good point! ASP.NET Caching is an in-process standalone cache and cannot scale like you want it to. For further information on this please visit the link provided.

All the best!

# November 26, 2008 10:50 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)