In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "what are the basics of Redis", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "what are the basics of Redis" this article.
Basic knowledge of Redis
1. Redis is a single process
A single-process model to handle client requests. The response to read and write time is achieved by wrapping the epoll function. The actual processing speed of Redis depends entirely on the execution efficiency of the main process.
Epoll is an improved epoll made by the Linux kernel to deal with a large number of file descriptors. It is an enhanced version of the multiplexed IO interface select/poll under Linux. It can significantly improve the system CPU utilization in a large number of concurrent connections with only a small amount of activity.
two。 Performance testing tool
/ usr/local/bin/redis-banchmark
3. Default 16 databases can be set
There are 16 databases by default, similar to the following table in the array, starting from zero, and initially using the zero library by default.
Find setting in redis.conf: database 16
4. Select switch database
127.0.0.1 9736 > select 1OK127.0.0.1:9736 [1] >
5. DBSIZE to view the number of key in the current library
127.0.0.1 9736 [1] > DBSIZE (integer) 0127.0.1 VR 9736 [1] >
6. Find all keys
127.0.0.1 keys 9736 [1] >
1) "K3"
2) "K2"
3) "K1"
127.0.0.1purl 9736 [1] >
7. Support? , * Fuzzy search
127.0.0.1 KEYS 9736 [1] > KEYS K444) "K3" 2) "K2" 3) "K1" 127.0.0.1 9736 [1] > K444 "
8. FLUSHDB empties the current library
9. FLUSHALL clears all libraries
These are all the contents of the article "what are the basics of Redis". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.