Multiple IIS websites with same caching

600 Views Asked by At

I would like to know how I can implement caching for multiple IIS websites. I have different applications which use the same queries I cached.

I made a simple cache service that uses System.Web.Caching.Cache but this only works per website.

How can I achieve the same caching for all of my websites? These are all on the same (virtual) webserver.

Can I use NCache for this problem?

Thanks for any help!

Solution

For testing purpose I installed a Couchbase server using Memcached on my computer and this seems to work very nice. Now I just wonder can I install this on my webserver or should I make a new virtual server for the caching?

1

There are 1 best solutions below

0
On

Any distributed cache such as Memcached, NCache, Redis etc should help resolve this issue for you. You keep data in a central repository and direct all your applications to use the same shared cache. NCache is a .NET distributed cache so if you have already worked with System.Web.Caching.Cache then you will find NCache API very similar.