473,480 Members | 2,134 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Cache: Application or Session?

I think I know the answer, but I need to be absolutely sure.

Currently I'm using Cache.Insert() -- Is this an Application level or Session level Cache? As far as I can tell there's only 1 Cache object and it's Application level, but if I'm misguided on that, I want to make sure I'm using the Application Cache and not the Session Cache.

Thanx again in advance!

--
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com

Nov 18 '05 #1
1 1096
Greg:
i have an article which discusses ASP.Net storage mechanisms at
http://openmymind.net/DataStorage/index.html

HttpCache is application level, however you could turn it into somewhat of a
session level via the cacheKey:

string cacheKey = "GetUserSettings:" + userId.ToString()

at which point the cached information is specific to a user (although it's
still accessible throughout the application)...

Hope this helps,
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Greg Collins [MVP]" <Greg.Collins_AT_InfoPathDev.com> wrote in message
news:eL**************@TK2MSFTNGP12.phx.gbl...
I think I know the answer, but I need to be absolutely sure.

Currently I'm using Cache.Insert() -- Is this an Application level or
Session level Cache? As far as I can tell there's only 1 Cache object and
it's Application level, but if I'm misguided on that, I want to make sure
I'm using the Application Cache and not the Session Cache.

Thanx again in advance!

--
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com


Nov 18 '05 #2

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

Similar topics

1
1475
by: sizheng | last post by:
who can talk about it? I'm confused. THANKS.
4
1362
by: Zeljko | last post by:
Hi, I was playing with the cache class (caching data, not fragments or pages). It seems to be a very usefull feature, but I didn't manage to find an explanation on how it works behind the scene....
4
2736
by: Guadala Harry | last post by:
Is there any way for one Session to remove and update objects in another Session? I seriously doubt it, but thought I'd ask. Here's why: I have some data that is unique per user (or per session -...
3
1186
by: Dragon | last post by:
Session ViewState Cache Already There are Session and ViewState What is the use of Cache ?
2
1921
by: LeAnne | last post by:
My question is to do with scalability and the location for storate of cache, session, viewstate and application data. Application - Data is stored in memory (in process) Session - Data is stored...
0
985
by: dities13 | last post by:
Hello all and thank you for your time. We have a 3rd party application written for my office (vb.net 2.0 framework). However, we are getting reports of slow response time and do not believe it...
1
1145
by: dities13 | last post by:
Hello all and thank you for your time. We have a 3rd party application written for my office (vb.net 2.0 framework). However, we are getting reports of slow response time and do not believe it...
5
6771
by: =?Utf-8?B?Y2hlY2tyYWlzZXJAY29tbXVuaXR5Lm5vc3BhbQ== | last post by:
I have a site which I secure with forms authentication. When the user's sign on and hit one of the secure pages, I have this line in my code to ensure that the browser does not cache the page;...
0
6920
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
7106
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...
1
6760
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
7022
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4501
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3013
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3004
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.