views:

31

answers:

3

We have several virtual applications inside one main (root) application.

How to share Cache between this virtual application and main application if they are located (and always will be) on the same physical machine?

By Cache i assuming System.Runtime.Caching or System.Web.Caching. Hope that i do not need to setup AppFabric Caching for this...

+1  A: 

Memcached is a free, open-source cache that runs as a Windows service. You can very easily accomplish cross-app cacheing by simply defining a key that both apps would use to look for in the memcached object(s).

Tahbaza
So, it is impossibly to do this with System.Runtime.Caching or System.Web.Caching? Even on one machine?
Rationalle
Sure, you could use them to expose your own server, reinventing the `memcached` wheel. :-)
Steven Sudit
A: 

Here is a nice tutorial for caching data across an applicataion.

http://www.asp.net/data-access/tutorials/caching-data-at-application-startup-cs

buckbova
+1  A: 

Can not be done. Multiple asp.net apps live in their own appdomain, and the appdomain is IIS controlled and may cycle at any time. This means any caching HAS to use networking scenarios (remoting etc.) and the cache better be suited outside the ASP.NET control (system service).

TomTom