Joke Collection Website - Mood Talk - An interview question, why use redis as a cache?

An interview question, why use redis as a cache?

Redis is not a database, but a caching software. In order to alleviate the memory resource consumption caused by the frequent reading of the database by the server, redis will temporarily store the information that needs to interact with the database. The next time you send the same http request, you can directly read the contents in redis without reading the database. This reduces the pressure on the database and improves the response time of the server. I hope you can adopt it.