Home > Back-end >  How to reasonable use redis data caching real-time changes
How to reasonable use redis data caching real-time changes

Time:09-26

For example, financial data, the query is slow, want to take advantage of caching to improve speed

CodePudding user response:

Added index would hurry up and index

CodePudding user response:

Specific treatment, the frequency of the data changes, the query to the requirement of real-time data, the data query frequency have relations, such as

For high query frequency, low frequency update data, can be placed in redis, at the time of data update synchronization refresh redis,

For variable frequency with the query frequency is very high, but the query data real-time demand is not high, can take regular update redis,

In the end the specific issues that need to be specific, according to its own characteristics for the business to make decisions,
  • Related