1. 在redis中保存

Grayscale_Range = { "idStart":1, "idEnd":5000 }

127.0.0.1:6379> hmset 'Grayscale_Range' 'idStart' 1 'idEnd' 5000

2.查看map映射的值

 HGET Grayscale_Range  idEnd

https://www.runoob.com/redis/hashes-hmset.html

用一个例子来演示会更加清晰