======Hest设置map名称还有一个key和value
127.0.0.1:6379> HSET hashMapName key1 Value1
(integer) 1
127.0.0.1:6379> HSET hashMapName key2 Value2
(integer) 1
==========我们会看到多了我们设置的hashMap的key
127.0.0.1:6379> keys *
- “hashMapName”
======hget获取一个
127.0.0.1:6379> HGET hashMapName key1
“Value1”
=========也可以用hgetall获取查看所有的
127.0.0.1:6379> HGETALL hashMapName
- “key1”
- “Value1”
- “key2”
- “Value2”