rids有什么数据类型?
rids有5种数据类型:
string 字符串(可以为整形、浮点型和字符串,统称为元素)。
list 列表(实现队列,元素不唯一,先入先出原则)。
set 集合(各不相同的元素)。
hash hash散列值(hash的key必须是唯一的)。
sort set 有序集合。
其中,string 类型是 rids 最基本的数据类型,string 类型的值最大能存储 512MB。 常用命令:set、get、decr、incr、mget等。