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 mainly explains "what are the relevant knowledge points of using Redis", friends who are interested might as well take a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn "what are the relevant knowledge points about using Redis"?
1. What are the benefits of using redis?
Fast, because the data is stored in memory, the advantage similar to HashMap,HashMap is that the time complexity of search and operation is O (1).
Support for rich data types and string,list,set,sorted set,hash
Transactions are supported and operations are atomic. the so-called atomicity is that changes to data are either performed or not performed at all.
Rich features: can be used for caching, messages, set expiration time by key, and will be deleted automatically after expiration
2. What are the advantages of redis over memcached?
All values of memcached are simple strings, and redis, as its replacement, supports richer data types.
Redis is much faster than memcached.
Redis can persist its data
3. Common performance problems and solutions of redis:
Master is best not to do any persistence work, such as RDB memory snapshots and AOF log files
If the data is important, a Slave enables AOF to back up data, and the policy is set to synchronize once per second.
For the speed of master-slave replication and the stability of connection, Master and Slave are better located in the same local area network.
Try to avoid adding slave libraries to the stressed master libraries.
Master-slave replication does not use graphic structure, but one-way linked list structure is more stable, that is, Master
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.