A cache is a memory buffer. Catching use to store frequently accessed data. First, Caching improves the performance. Catching is applied in the various area of the computer field. There are many ways to implement caching. First is routers, second switches, and third PC etc. They use cache to speed up memory access. Caches use in common in all PC’s is web browser cache. It uses for storing requested objects. In distributed JEE applications cache plays the main role. The client-side cache uses to store static data. The server-side cache uses to store memory from other resources. Here we study what is caching?. Why caching is done in Dot net?. You will learn more on Data caching in asp.net MVC in dot net online training.
What is a cache?
First caching is a technique uses for storing frequently used data. Next time when we use the same data, it retrieves from memory. In some cases caching is similar to storing state objects. you can count on storing information in state objects. But whereas caching information is non deterministic. Data will not be available in the following cases. First is its lifetime expires. Second is application releases its memory. The third is caching does not take place for some reason.
Types of caching in asp .net with an example
There are many catching in Asp.Net tutorial. First is output caching. Second is Data caching, third is object caching, fourth is class caching, fifth is configuration caching.
Output cache stores a copy of finally rendered HTML page. It shows a cached copy whenever a new client request. Rendering a page involves some complex process.
Data caching involves caching data from data source. A request for data will be fulfilled from the cache. When cache expires, Fresh data is refilled. The main aspect of data caching is data source controls. Data source control has the following properties. First cache duration, second cache expiration policy, Third is cache key dependency and last is enable caching.
Object caching is caching the objects on the page. The cached data stores in server memory. It is more flexible than other techniques. You can use any object in the cache. The object can be of any type. Such as data type, web control, class, dataset object. The object is added simply assigning a key name.
Web services are compiled into a page. When running for the first time. Then assembly caches in the server. Next time when we request, the cached assembly refers to it. When source code changes CLR recompiled assembly. Why caching is done in dot net
Application configuration information stores in the configuration file. Configuration cache store configuration information. It will store information in server memory.
Caching is very important for a performance boost in Dot Net. It is especially important at data related transactions. Caching places uses in accessed media. It includes such as random access memory. The run time includes a key-value map of CLR objects. Finally, this CLR map also called cache.
Conclusion: Finally by using cache we can speed the application process. So you can lower the burden for the application. This also saves a lot of memory. Data handling can be faster. So Caching is very important in dot net. You can also learn more on dot net in dot net online training.
Basics of SQL server, server-side languages & database. If you don’t have idea also no problem. Online it Guru teaches on every module in dot net. They will start from basics. Follow updates of dot net in dot net online training.