What is the difference between application and cache variables?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

To get the values in two different controls to match which control you use it?

529


What are the benefits of Razor View?

533


Explain the Order of events in an asp.net page?

604


Can I have a unique key as foreign key?

540


List of words of preprocessor in .net?

515






What are server side controls?

529


What is parse in asp.net?

551


In which event are the controls fully loaded?

566


Explain different types of Caching techniques in ASP.NET?

550


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

572


What is state management react?

508


What are the two Layouts supported by a Web form in ASP.NET?

550


What is masterpage?

509


To display data in the combo box, prior to setting the Data Source, what kind of property on a Combo Box do you set with a column name?

603


Can a master page have more than one contentplaceholder?

506