Redis data types --Redis

Creative Commons License Copyright: Attribution, allow others to create paper-based, and must distribute paper (based on the original license agreement with the same license Creative Commons )

Redis has five types of data:

1, a string, such as:key->""

2, hash, such as:key->{‘key1’:‘value1’,‘key2’:‘value2’}

3, list (repeat), such as:[1,2,1]

4, set (not duplicate), such as: {1,2}Application: The set of crawlers can not be repeated in the realization of "de-emphasis"

5, ordered set (not repeatable, order):{1(2),2(1)}

Guess you like

Origin blog.csdn.net/Thanlon/article/details/93487849