473,387 Members | 1,798 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,387 software developers and data experts.

Application Class vs Cache Class

I have googling some page, and it hasn't mention the resource usage of the
server in Application class and Cache class, which one consume more server
resource?

Thanks
Sep 11 '06 #1
4 4061
Hello PenguinPig,

Could u explain what do u mean with "Application class and Cache class" ?

PI have googling some page, and it hasn't mention the resource usage
Pof the server in Application class and Cache class, which one consume
Pmore server resource?
P>
PThanks
P>
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Sep 11 '06 #2
Hi Michael

In my concept
We can using Application["var1"] or Cache["var1"] to store the data, which
as long as the application live.
But for Application and Cache, which consume more server resource?

Thanks

PenguinPig

"Michael Nemtsev" <ne*****@msn.comwrote in message
news:17***************************@msnews.microsof t.com...
Hello PenguinPig,

Could u explain what do u mean with "Application class and Cache class" ?

PI have googling some page, and it hasn't mention the resource usage
Pof the server in Application class and Cache class, which one consume
Pmore server resource?
P>
PThanks
P>
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do
not
cease to be insipid." (c) Friedrich Nietzsche


Sep 11 '06 #3
The application class is a liitle more light weightin itself as it in simply
class that inherits namevaluecollectionbase. The Cache object can support
expireation and things like that which make it a little more heavy weight.
I don't think there is any noticable difference in use for just storing an
Item as they are both going to be instatiated in memory already so the only
new memory allocation would be for item itself in the application and for a
cacheentry object containing the item in the Cache.
It would be helpful to know more about the granularity you are looking for.

Bottom line answer is that the Cache uses more memory from what I can see.

HTH

Ciaran O'Donnell

"PenguinPig" wrote:
Hi Michael

In my concept
We can using Application["var1"] or Cache["var1"] to store the data, which
as long as the application live.
But for Application and Cache, which consume more server resource?

Thanks

PenguinPig

"Michael Nemtsev" <ne*****@msn.comwrote in message
news:17***************************@msnews.microsof t.com...
Hello PenguinPig,

Could u explain what do u mean with "Application class and Cache class" ?

PI have googling some page, and it hasn't mention the resource usage
Pof the server in Application class and Cache class, which one consume
Pmore server resource?
P>
PThanks
P>
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do
not
cease to be insipid." (c) Friedrich Nietzsche


Sep 11 '06 #4
Why are u worring about resources when select the class to state you data?

The selecting of the state class usually depends on the features of this
class. Cache is more robust and powerfull over Application.
Both of them use internal structures to keep data, and difference should not
be valued .
Application uses NameObjectCollectionBase class and Cache uses CacheEntry
class

--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche


"PenguinPig" wrote:
Hi Michael

In my concept
We can using Application["var1"] or Cache["var1"] to store the data, which
as long as the application live.
But for Application and Cache, which consume more server resource?

Thanks

PenguinPig

"Michael Nemtsev" <ne*****@msn.comwrote in message
news:17***************************@msnews.microsof t.com...
Hello PenguinPig,

Could u explain what do u mean with "Application class and Cache class" ?

PI have googling some page, and it hasn't mention the resource usage
Pof the server in Application class and Cache class, which one consume
Pmore server resource?
P>
PThanks
P>
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do
not
cease to be insipid." (c) Friedrich Nietzsche


Sep 11 '06 #5

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

Similar topics

8
by: Google Mike | last post by:
I need an Application object replacement. I was creating my own using shared memory -- shm* API in PHP. I was doing fine for 6 months until it just got too fat, I guess, and the RH9 Linux server...
3
by: Patrick | last post by:
Hi I have the following problem. When starting my asp.net application, i read a encrypted string from a file, decrypt it and want this values to be available in the complete application. they...
4
by: Keith Chadwick | last post by:
I am having some trouble referencing an Application("myVar") variable from within a module.vb file on my ASP.NET site. According to the documentation I should be able to reference...
2
by: KaaN | last post by:
hi, in an asp.net application, i can not access the server-side application data using, cachedata = Application; when it is not a page behind class. can i use the cache in another class of...
6
by: Tony Fonager | last post by:
I am currently developing a statistics system in ASP.NET, and need to share information about the customers websites, in this application. (I have simplified my code, to make my project easier to...
5
by: Darrel | last post by:
I thought this warranted a new thread. Yesterday I asked about access relatively static content...is it better to read from the DB, or just grab a text file. It was suggested that I use the DB...
2
by: Oberon | last post by:
Why does this not work as it should? I expect index.aspx to show:. Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\inetpub\wwwroot\ChatSimple\db\chatusers.mdb Instead, I get: ...
4
by: Omega | last post by:
I just recently recieved my full copy of Visual Studio 2005 (excited!!!), and have gone head first into writing my first application. Sadly, I've hit a design barrier. >From what I can see,...
4
by: Fred Nelson | last post by:
Hi: This is probably a newby question however I can't figure it out! I'm trying to use application data caching in a web application. I have read an article on 4 guys from rolla that shows...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.