Cache: Types and Functions

Cache is the memory area where a part of the most frequently (more frequently than data in the RAM) is stored.
Caches were introduced to further enhance the mismatch of various hardware components of the computer like that of the processor and peripheral devices.
The purpose of caches is simple. They enhance the speed of a computer's hardware and software parts.
Cache is of two types: Hardware and Software.


The hardware caches are usually memory chips embedded within a hardware device. The most common example of this are the L1,L2 and L3 caches of modern processors.


The software caches is the ability of the software to save the most accessed user data on the Hard-Disk or the RAM. An example of this is the internet browser cache that contains cookies, form data and partial website data.