In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article is to share with you about when you need to use redis. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Redis is a key-value storage system. Similar to Memcached, it supports relatively more value types, including string (string), list (linked list), set (collection), zset (sorted set-ordered collection), and hash (hash type).
When do I need to use redis?
● does not require real-time updates but consumes extremely much data from the database. For example, the ranking of commodity sales on the website, this kind of data can be counted once a day, and users will not pay attention to whether it is real-time or not.
● requires real-time updates, but data that is updated less frequently. For example, a user's order list, he certainly wants to be able to see his own orders in real time, but most users will not place orders frequently.
● accesses a lot of data and updates frequently at some point. This kind of data has a very typical example is the second kill, in the second kill that moment, there may be N times the usual flow in, the system pressure will be very great. However, the cache used by this kind of data cannot be the same as the ordinary cache, and this kind of cache must be guaranteed not to be lost, otherwise there will be a big problem.
Thank you for reading! This is the end of the article on "when you need to use redis". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.