In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1. Keys
Format: keys {pattern}
Returns all key that satisfy a given pattern.
2. Exists
Format: exists' key'
Determine whether key exists.
3. Del
Format: del 'key'
Delete the key.
4. Expire
Format: expire 'key' {num}
Set the expiration time for the key, the key must exist, and the num is seconds.
5. Persist
Format: persist 'key'
Cancel the expiration time of the key, the key must exist.
6. Ttl
Format: ttl 'key'
Get the remaining time of key.
7. Select
Format: select {num}
Select a database. The value range of num is 0-15. There are a total of 16 databases by default.
8. Move
Format: move 'key' {num}
Move key to the num th database.
9. Randomkey
Format: randomkey
Randomly returns a key in the database.
10. Rename
Format: rename 'key1'' key2'
Rename key1 to key2.
11. Type
Format: type 'key'
Returns the data type of key.
12. Dbsize
Format: dbsize
Returns the number of current database key.
13. Flushdb
Format: flushdb
Deletes all key in the current database.
14. Flushall
Format: flushall
Delete all key from all databases.
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.