五种数据类型的不同之处,是value在存储时的形式不同。
hash类型
value类型是<key,value>键值对。如果发生hash冲突,用开放定址法解决,不拉链!
key值重复,则新值覆盖旧值

List类型

Set类型
与List的类似,只是value不能重复

Zset类型(按照score大小进行排序)

String类型(一对一)

五种数据类型的不同之处,是value在存储时的形式不同。
value类型是<key,value>键值对。如果发生hash冲突,用开放定址法解决,不拉链!
key值重复,则新值覆盖旧值
与List的类似,只是value不能重复