In-memory cache
Stores data in the main memory of a computer. In-memory caches are
typically the fastest type of cache, but the data is lost when the cache is
restarted or the machine is shut down.
▪ Disk cache
Stores data on a hard drive or solid-state drive. Disk caches are slower
than in-memory caches, but they can persist data.
▪ Distributed cache
Cache is distributed across multiple machines and is typically used in
distributed systems, such as microservices architectures.
▪ Distributed caches can improve the performance and scalability of a
system by allowing data to be stored and accessed from multiple
locations.
https://bootcamp.uxdesign.cc/caching-techniques-one-should-know-603e09d2b298