I have two applications- one asp.net website and the other is a Windows service.
Both applications are referring to the My Business Layer (Library Project), which is itself referring to the My Data Access Layer (Library Project) which uses the Enterprise Library Data Application Block itself, To obtain the data SQL Server 2005 database.
Currently I have systems in my BL. Use the Web.Caching.Cache object to cache certain things:
Public stable system. Web.Caching.Cache cache {get {if (cache == faucet) {if (System.Web.HttpContext.Current! = Null) {//asp.net cache = System.Web.HttpContext.Current.Cache; } Else {// windows service cache = System.Web.HttpRuntime.Cache; }} Return cash; }}
As both apps are running on themselves - they are both using a different cache object themselves - and this is actually a problem:
< P> If I change an object in the asp.net website and save it to db. This cache key is removed from the object cache - the cache of asp.net application! This is right.But the cache of windows service becomes stale!
Vice-Versa
Is it possible that both apps are using the same cache? A cache for both applications?
I think of only one option that I use SQL dependency with
Is there any other way?
EDIT: I just found I had to give it a chance and Because the velocity release will be in the candidate's position by mid-2009.
You should take a significant look at Microsoft's new free distributed cash "velocity."
I have done a podcast on this topic:
Here is the description on MSDN:
Here are the downloads and samples:
Comments
Post a Comment