The second problem encountered in the project is redis

In the project, we often use redis to cache query data,

But sometimes, it may be because of an error in redis that the query data fails

Many times, we first check the database and the code itself, ignoring redis


Here, you must remind yourself that when there is no problem with the self-check code, you should test whether redis can be connected normally. The following picture shows that redis is no problem


But if this happens, the data may not be queried because of the problem of redis, as shown below


Such a picture appears to indicate that redis is not connected normally

Doing this solves it:


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325687579&siteId=291194637