473,396 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

HttpContext.Cache....

If I have set the session state for an asp.net application to be out of
process how does this affect the HttpContext.Cache? What I want to know it
is possible to store the Cache out of process as well?

Because I read in MSDN that:
One instance of this class is created per application domain, and it remains
valid as long as the application domain remains active. Information about an
instance of this class is available through the Cache property of the
HttpContext object or the Cache property of the Page object.


Nov 18 '05 #1
3 2205
No. It is not possible to configure the location of the Application Cache.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"James" <james@spam_.com> wrote in message
news:OL**************@TK2MSFTNGP09.phx.gbl...
If I have set the session state for an asp.net application to be out of
process how does this affect the HttpContext.Cache? What I want to know it
is possible to store the Cache out of process as well?

Because I read in MSDN that:
One instance of this class is created per application domain, and it remains valid as long as the application domain remains active. Information about an instance of this class is available through the Cache property of the
HttpContext object or the Cache property of the Page object.

Nov 18 '05 #2
HttpContext.Cache is tried to the request not the application or session.
Its created at start of request and destroyed at end. it supplies a way for
code and http modules to pass request data around.
-- bruce (sqlwork.com)
"James" <james@spam_.com> wrote in message
news:OL**************@TK2MSFTNGP09.phx.gbl...
If I have set the session state for an asp.net application to be out of
process how does this affect the HttpContext.Cache? What I want to know it
is possible to store the Cache out of process as well?

Because I read in MSDN that:
One instance of this class is created per application domain, and it remains valid as long as the application domain remains active. Information about an instance of this class is available through the Cache property of the
HttpContext object or the Cache property of the Page object.

Nov 18 '05 #3
Bruce:

Are you positive you are not thinking of HttpContext.Items?

The Cache is around for the duration of the application domain, the
Items collection is around just for the request.

--
Scott
http://www.OdeToCode.com

On Fri, 9 Jul 2004 09:14:48 -0700, "bruce barker"
<no***********@safeco.com> wrote:
HttpContext.Cache is tried to the request not the application or session.
Its created at start of request and destroyed at end. it supplies a way for
code and http modules to pass request data around.
-- bruce (sqlwork.com)
"James" <james@spam_.com> wrote in message
news:OL**************@TK2MSFTNGP09.phx.gbl...
If I have set the session state for an asp.net application to be out of
process how does this affect the HttpContext.Cache? What I want to know it
is possible to store the Cache out of process as well?

Because I read in MSDN that:
One instance of this class is created per application domain, and it

remains
valid as long as the application domain remains active. Information about

an
instance of this class is available through the Cache property of the
HttpContext object or the Cache property of the Page object.


Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: George Ter-Saakov | last post by:
What is HttpContext.Cache for ? The usual HttpRequest lasts miliseconds. Why would someone to cache anything? We do have HttpContext.Items to keep any extra info during the request. Can...
5
by: DesignerX | last post by:
What is the difference between Page.Cache and HttpContext.Current.Cache? Do these access the same thing? Is there any easy way to clear all items in the cache? TIA, Stan
4
by: Mat | last post by:
Hi, I've stumbled onto a problem when using the caching object in ASP.Net. I'm placing a static dataset to the cache as the data only changes once a day. Whilst writing to the cache I'm using...
3
by: xzzy | last post by:
A. I need to access: System.Web.HttpContext.Current.Cache but get this error: "Object reference not set to an instance of the object" B. System.Web.HttpContext.Current.Cache is accessible...
2
by: kplkumar | last post by:
This is the scenario. The flow of control goes from WebService --> OurManager --> Persistence --> Database also OurManager spwans a thread to execute the EmailSubsystem. This system ues the...
4
by: msch-prv | last post by:
Hello. I am trying to use caching to populate a datalist. The select method of the associated objectdatasource calls up GetRecipePageByRecipeCatID() to request the proper data (I am using custom...
6
by: =?Utf-8?B?emlubw==?= | last post by:
in asp.net 2, I load a dataset from the Cache object into a local object to use to perform processing. I had been using httpcontext.current.cache and what I noticed is sometime I'm not able to get...
3
by: Madhur | last post by:
Hello I am delivering an asp.net 2.0 application to my customer. I need to know, If I need to check for the condition of HttpContext.Current to be null in my business logic. I have extensively...
8
by: SpaceMarine | last post by:
hello, my web app form has many DropDownLists that pull their content from a database. these calls are in a Business Access Layer, when first checks the context's Cache object for existing...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.