redis的五种数据类型图
时间: 2023-10-14 13:28:15 浏览: 153
Redis 数据类型
5星 · 资源好评率100%
以下是 Redis 的五种数据类型的图示:
1. String(字符串)
```
+--------+
| String |
+--------+
| key | --> value
+--------+
```
2. Hash(哈希)
```
+-------+
| Hash |
+-------+
| key | --> field1 value1
| | field2 value2
| | field3 value3
+-------+
```
3. List(列表)
```
+------+
| List |
+------+
| key | --> value1
| | value2
| | value3
+------+
```
4. Set(集合)
```
+-----+
| Set |
+-----+
|key | --> member1
| | member2
| | member3
+-----+
```
5. Sorted Set(有序集合)
```
+-------------+
| Sorted Set |
+-------------+
| key | --> score1 member1
| | score2 member2
| | score3 member3
+-------------+
```
阅读全文