A preliminary understanding of the Redis database

Source: Internet
Author: User
Tags set set

Because the previous contact is a relational database, for non-relational database always do not understand, take advantage of the opportunity to do the project, just a preliminary understanding of the Redis database

Redis is divided into storage divided into several stored data types

String type, hash type, list linked list type, set set type, sorted set type

The corresponding operation is not the same, so the most common work is:

Keys * Query all key values

Type of query key value

When a string is created, it stores the value of the Key-value.

Hash establishes the value pair of the table name-key-value, and the hash is particularly suitable for storing objects. Compared to Gencun each word of an object into a single string type. To save an object

Storing in hash types consumes less memory and makes it easier to access the entire object

List is set up to be linked list

Set is set up to be a collection, especially when we need to use the intersection, and set operation

The sorted set is created by adding a sequential attribute to the set, sorted by this property

Summarize here today, if you have time to add it later

A preliminary understanding of the Redis database

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.