HighTechTalks DotNet Forums  

Cache.Remove from a seperate web server

ASP.net Caching microsoft.public.dotnet.framework.aspnet.caching


Discuss Cache.Remove from a seperate web server in the ASP.net Caching forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Jeff
 
Posts: n/a

Default Cache.Remove from a seperate web server - 04-18-2005 , 03:33 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


Reply With Quote
  #2  
Old   
Alvin Bruney [MVP - ASP.NET]
 
Posts: n/a

Default Re: Cache.Remove from a seperate web server - 04-18-2005 , 08:13 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
"Jeff" <jfinch (AT) pgtindustries (DOT) com> wrote

Quote:
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




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.