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

How many types of sessions are there?

2 Answers  


Is there any alternative to avoid name collisions other then Namespaces?

0 Answers  


Which two new properties are added in asp.net 4.0 page class?

0 Answers  


What is the purpose of each of the validation controls provided by ASP.NET?

1 Answers  


What's the difference between Page.RegisterClientScriptBlock and Page.RegisterStartupScript ?

1 Answers  


With example & diagram explain AutoPostBack.

2 Answers  


With out Web.config can we executes the application?

10 Answers   Valtech,


What is Active Directory? What is the namespace for that?

2 Answers  


In what languages in ASP written?

4 Answers   Microsoft,


1.what is the application pool. 2.what is the HttpModile and Http Handler. 3.C# 3.0 Features ? 4.Anonoymous Type,methopd and claas in 3.0? 5.difference between statsic and const ? 6.session vs application 7.state management clint side and server side ? 8.Genric list 9.c# 3.0 vs 3.5

0 Answers   TCS,


if i have placed the button control with the OnClick event like <asp:Button ID="mybutton" runat="server" Text="Insert" onclick="mybutton_Click" /> and some other controls(buttons, textboxes) in .aspx page. When i run the page, the button displays in the page source of the browser like <input type="submit" name="mybutton" value="Insert" id="mybutton" /> here, it does not display the onclick event, then how the page calls the button click on the server side, how the server side identify which button cause the submit, and how this page moves to the server side.

1 Answers  


what is the cursor

1 Answers   Wipro,


Categories