object caching in webservice
-
I have a very basic question. I have a webservice with method calls to methods within dlls and within the dlls I have added object caching - not page caching. My question is: will each user of the webservice have their own cache? Or are these objects that are cached in the same cache for all the calls to the dlls?
-
I have a very basic question. I have a webservice with method calls to methods within dlls and within the dlls I have added object caching - not page caching. My question is: will each user of the webservice have their own cache? Or are these objects that are cached in the same cache for all the calls to the dlls?
dd314159 wrote:
My question is: will each user of the webservice have their own cache? Or are these objects that are cached in the same cache for all the calls to the dlls?
No. There is one cache per process, not by user.
I didn't get any requirements for the signature
-
dd314159 wrote:
My question is: will each user of the webservice have their own cache? Or are these objects that are cached in the same cache for all the calls to the dlls?
No. There is one cache per process, not by user.
I didn't get any requirements for the signature
-
Thanks for the answer - but still one more question. So you are saying that the webservice with multiple dll calls - constitutes one process?
Any application in ISS (service or website) is part of an application pool. The application pool runs one .exe. You can see it in the task manager. The System.Web.HttpContext.Current.Cache is specific to the current HttpContext or application. What does it matter if all your code is compiled into one .dll or 50 .dlls?
I didn't get any requirements for the signature
-
Any application in ISS (service or website) is part of an application pool. The application pool runs one .exe. You can see it in the task manager. The System.Web.HttpContext.Current.Cache is specific to the current HttpContext or application. What does it matter if all your code is compiled into one .dll or 50 .dlls?
I didn't get any requirements for the signature