Click here to Skip to main content
16,019,210 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What is the diffference between application state and caching?
Posted

Caching is different from Session state management.
Caching is generally used to improve performance.
State management is used to share data across different pages or states in a web page.
 
Share this answer
 
There is a nice article for you. Application state vs. Application Cache[^].

Also follow the answer Application vs Session vs Cache[^].

Quote:
Application and Session State have a very important difference:

Application state is a data repository available to all classes in an ASP.NET application. Application state is stored in memory on the server and is faster than storing and retrieving information in a database. Unlike session state, which is specific to a single user session, application state applies to all users and sessions. Therefore, application state is a useful place to store small amounts of often-used data that does not change from one user to another

Application State Overview[^]
Session State Overview[^]

Caching, on the other hand, allows you to store objects in memory that require extensive server resources to create - it offers powerful features that allow you to customize how items are cached and how long they are cached - you can set extensive properties like priority and expiration.

Caching Application Data Overview[^]

Although they might appear similar, they are distinctly separate and have different roles to play in an ASP.NET application in its broadest sense.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900