In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 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 the data types in Redis. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
5 data types of 1.redis:
String string (can be integer, floating-point, and string, collectively referred to as elements)
List list (implementation queue, non-unique elements, first-in, first-out principle)
Set collection (different elements)
Hash value (key for hash must be unique)
Sort set ordered set
Common commands of the 2.string type:
Self-added: incr
Self-subtracting: decr
Add: incrby
Minus: decrby
Common commands supported by the 3.list type:
Lpush: push in from the left
Lpop: pop up from the right
Rpush: push from the right
Rpop: pop up from the right
Llen: view the length of a list data type
Common commands supported by the 4.set type:
Sadd: adding data
Scard: view the number of elements that exist in set data
Sismember: determines whether an element exists in set data
Srem: delete an element from an set data
Common commands supported by the 5.hash data type:
Hset: adding hash data
Hget: getting hash data
Hmget: get multiple hash data
6.sort set is very similar to hash and is also storage in the form of mapping:
Zadd: addin
Zcard: query
Zrange: data sorting
These are the data types in Redis, and the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please 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.