Groups | Blog | Home
all groups > asp.net caching > april 2005 >

asp.net caching : Cache.Remove from a seperate web server



Jeff
4/18/2005 12:33:47 PM
Have two web servers, cacheX will reside on each server seperately,
expiration gets set when each gets created.
Power users (only 2-3 people) for the web app want the ability to
remove the cache on both servers from a single interface button click.

I know these power users will be using web serverN so I need to remove
cacheX from serverN and also remove from serverP
<code>
'remove from cache on serverN
Context.Cache.Remove("cacheX")
'remove from serverP, different server on network
http or IP Address.Context.Cache.Remove("cacheX")
</code>

Thanks in advance.

Framework1.1
Alvin Bruney [MVP - ASP.NET]
4/18/2005 8:13:39 PM
one approach is to write a service running on the machine that accepts a
flag. your application monitors this flag and removes the item from the
cache when the flag is set. you can then use the service running on all
boxes to synch these boxes together

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc
[quoted text, click to view]

AddThis Social Bookmark Button