Introduction to caching
Caching can be defined as the process of making popular data highly available by temporarily storing the data in memory. This allows responding to a request faster by retrieving data from the memory rather than going onto the disk. There are three types of caching, as follows:
Caching in the database
Caching in the application
Content caching
Let's begin with database caching.