Redis data types

Source: Internet
Author: User

Redis data types

Key-Value data types supported by Redis

  • String type
    • The string type is the most basic data type of Redis, and a key can store up to 512MB.
    • The string type is binary safe.
  • Hash type hash is a string type of field and value mapping table, hash is particularly suitable for storing objects. Each hash can store 2^ (32-1) key-value pairs (more than 4 billion)
  • List types can store 2^ (32-1) elements in order of insertion
  • Set type
    • Unordered collection of string types
    • It is implemented by a hash table, so the complexity of adding, deleting, and finding is O (1).
    • The largest number of members in the collection is 2^ (32-1)
  • Zset (sored set: Ordered set) type
    • Each element is associated with a double-type fraction. Redis is a small-to-large ordering of the members in a collection by fractions
    • Members are unique, but fractions (score) can be duplicated

If you find an error, please tap, welcome message exchange, thank you

Redis data types

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.