In-memory caching is a technique which is widely used. In this type of caching, data is stored directly in RAM. Memcached and Redis are examples of in-memory caching. The most common implementation of this type of caching is based on key-value databases. They can be seen as sets of key-value pairs. The key is represented by a unique value, while the value by the cached data.