Redis-Common Command actions

Source: Internet
Author: User

Common commands
Keys:keys * View all keys that meet the criteria
Exists:exists key to see if key exists
Del:del Key Delete a key
Expire:expire key time to set the expiration of a key
Move:move key Basenum Transfer the specified key to a different database
Persist:persist key to remove the expiry time of the specified key
Randomkey:randomkey randomly returns a key
Rename:rename key1 key2 Change key1 name to Key2
Type:type key returns the key type of the specified key

Ping:ping to see if the database is connected properly
Echo:echo String Print string
Select:select basenum selected Database, 0-15
Quit:quit exiting the connection
Dbsize:dbsize returns the number of keys for the current library
Info:info Returning Database Information
Monitor:monitor commands currently processed by the monitoring database
Config Get:config get para get para configuration parameters
FLUSHDB:FLUSHDB Delete all keys for the current database
Flushall:flushall Delete all databases key

Redis-Common Command actions

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.