Caching

Developers often need to temporarily put data (temporary data) in a storage medium (for example, a database or some location in memory) for quick access. The storage of this temporary data is called a cache.

A cache provides a number of possibilities. For example, imagine that you're working with a database in which data will be changed very rarely. When a user requests data, you will retrieve the same data each time from the database. Each time, the server will process the same operation to the retrieve the data and the performance of the application will be decreased. The best solution in such a situation is to store retrieved data in storage (at least for a short period of time). After storing the data, you can read it directly from ...

Get Microsoft® Visual C#® .NET 2003 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.