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)06/01 Report--
1. Key pattern queries the corresponding key
1) redis allows fuzzy query key to have three wildcards,?, []
: with any number of characters
?: with a single character
[]: a character in parentheses
2) randomkey: returns random key
3) type key: returns the type of key storage
4) exists key: determine whether a key exists
1: exists 0: does not exist
5) del key: delete key
6) rename key newkey: rename
7) renamenx key newkey: modified successfully if newkey does not exist
8) move key 1: move key to database 1
9) ttl key: query the lifecycle of key (seconds)
10) expire key integer value: sets the life cycle of key in seconds
11) pexpire key integer value: sets the life cycle of key in milliseconds
12) pttl key: query the lifecycle of key (milliseconds)
13) perisist key: sets the specified key to be permanent
Second, string type operation
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.