Redis as a Cache
In a caching architecture, Redis stores copies of information maintained by another system. For example, a relational database may hold the approved list of destinations supported by a travel platform. Redis can temporarily store commonly requested destination suggestions. When the cache entry exists, the application retrieves it without repeating the underlying database query. When it does not exist, the application retrieves the information from its authoritative source and may place a new copy in Redis. The cache improves efficiency only when the cost of maintaining and retrieving cached information is justified by the work avoided.


