Combination use of MySQL and redis cache
******
****** 2018-11-09 16:29:58
0
3
1161

Guys, I want to ask a question. I now have a statistical need to count the consumption of users in the store in the current month, 3 months and 6 months this year; then I plan to first use MySQL to collect the consumption of the store users. The order records are checked once and then put into Redis. If you query again on the same day, you will check Redis, and you also need to perform filtering and statistics


******
******

hello world 程序员

reply all(2)
虔

It mainly depends on how you design your *** table. If all your information is in one table, there is definitely no way to achieve it.

灭绝师太

Yes, you can use redis or memcache

  • reply I want to save all the order table data in the database to Redis, and then use Redis for query, filtering, statistics and other actions. How should I operate in this way? List and hash are not convenient enough; or how should I create a key?
    ****** author 2018-11-12 13:56:29
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template