What is the difference between application and cache variables?

Answers were Sorted based on User's Feedback



What is the difference between application and cache variables?..

Answer / chandra prakash

the key difference between them is the added features
provided by the Cache object like the expiration policies
and dependencies. It means that the data stored in the cache
object can be expired/removed based on some predefined time
limit set by the application code or when the dependent
entity gets changed whereas this feature is not available in
the Application object.
Although when we want to save some database results like
dataset or datatable and we dont want to send the request
frequently to the database server, we use cache object.

Is This Answer Correct ?    22 Yes 2 No

What is the difference between application and cache variables?..

Answer / sandip bramhankar

Application object in not thread safe. You have to provide
your owen locking. But Cache is thread safe. Oveerhead of
locking can avoide by using Cache object

Is This Answer Correct ?    5 Yes 2 No

What is the difference between application and cache variables?..

Answer / prasanna

In application state we have to lock and unlock the
application.In cache it is not required. A cache object
supports dependencies such as file dependencies and SQL
dependencies.If there is any change in the file or in the
database tables cache expires.But an application does not
support dependencies.Cache objects employ expiration
policies whereas an application variable does not have the
expiration set.It has the life of the application.

Is This Answer Correct ?    1 Yes 0 No

What is the difference between application and cache variables?..

Answer / sunaina

The main difference between the Cache and Application
objects is that the Cache object
provides cache-specific features, such as dependencies and
expiration policies.

Is This Answer Correct ?    0 Yes 1 No

What is the difference between application and cache variables?..

Answer / shalini

Application variable is used globally through out the
application across the muktiple users where cache variable
is used for cache specific items such as cache memory,
cache dependencies etc.

Is This Answer Correct ?    5 Yes 18 No

What is the difference between application and cache variables?..

Answer / rajnish kr bhatt

Application var is global to user however cache is specific
to user

Is This Answer Correct ?    3 Yes 41 No

Post New Answer



More ASP.NET Interview Questions

HI, I have a very important query in mind. Please help me regarding this. I don't have any real time exp in .net. But I have a knowledge it .net. I got an offer from an MNC company as a software developer has I had kept 2 years of fake exp. Even though for this job I had worked hard to crack interview for more then a year. So, I would like to know how difficult it will be for working in real time as I don't have real time exp. Please tell me as soon as possible bcoz I need to join by next month. Can i sustain over there for a longer time or not. And also let me know how to work pressure will be over there. Please help me regarding this. I'm getting tension thinking about it. Thank you.

1 Answers   CTS,


Can you explain composite pattern?

0 Answers   QuestPond,


List of interview questions collections at www.dpoint.weebly.com

2 Answers   IBM,


Can private assembly be used for more than one application? If so how?

7 Answers   Satyam,


What is the difference between GridView and Repeater controls in ASP.NET?

0 Answers  






can we edit records from repeater control

2 Answers  


What is strong-typing versus weak-typing? Which is preferred? Why?

2 Answers  


In Code-Behind class which kind of code (server or client) is found ?

0 Answers   Siebel,


What is server objects in asp.net?

5 Answers  


Explain diff. Betn dataset and recordset?

0 Answers  


What is the differances between a abstract calss and interface

2 Answers   Patni,


How does http session work?

0 Answers  






Categories