Caches are used to store temporary files, using hardware and software components . An example of a hardware cache is a CPU cache. This is a small chunk of memory on the computer’s processor used to store basic computer instructions that were recently used or are frequently used.