redis as a cache feature has many advantages, which can ease the pressure on the server
first determine whether there is any in the cache. If not, check DB
, then directly use
. What if DB is updated? Isn"t the data in redis just the old dirty data?