Common commands for Redis

Source: Internet
Author: User
Tags download redis

1.get Key

Get the corresponding value by this key

2.set Key value

Use key as the key, value as

3.keys *

You can use this to search for keywords in the *, by taking out all the keys that are currently matched.

4.exists Key

Determine if the current key exists

5.del Key

Delete current key

6. Expire Key Time

Set Expiration Time

7.randomkey

Randomly returns a key

8.type Key

View the data type of the key return value

9. quit

Exit connection

Ten. Dbsize
(integer) 12

Number of keys in the current database

11.flushdb
Empty the current database

12.flushall

Clear all databases


Follow-up will continue to supplement, you can refer to the documentation: Http://redis.io, to remind you that this site provides download Redis package does not support Windows, want to play Redis can go to the virtual machine, of course, someone has provided the corresponding package for Windows: https:// Github.com/dmajkic/redis/downloads




Common commands for Redis

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.