Redis data type: string type, redisstring

Source: Internet
Author: User

Redis data type: string type, redisstring

Web programmer blog: http://blog.csdn.net/thinkercode

String type-Features

String is the simplest type. You can think of it as the same type as Memcached. A key corresponds to a value, and the operations supported on it are similar to those of Memcached. However, it provides more functions.
The string type is binary secure. It means that the redis string can contain any data, such as JPG images or serialized objects. From the internal implementation, the string can be regarded as a byte array, and the maximum value is 1 GB.
In addition, some strings can be processed by int type commands, such as incr. If only the string type is used, redis can be regarded as memcached with persistence features. Of course, redis still has a lot more operations on the string type than memcached.
The independent element types in list, set, and zset are all string elements.

String Common commands

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.