Redis新手-如何在哈希中创建哈希?
我想在redis中创建这种类型的结构:(基本上是json数据) { "id": "0001", "name":"widget ABC", "model": "model123", "service":"standard", "admin_password": 82616416, "r1": { "extid":"50000", "password":"test123", }, "r2": { "ext":"30000", "password":"test123", }, } 到目前为止,我已经尝试过: 我试图创建没有“子”哈希的哈希,只是为了确保我掌握了基础知识。所以这是我从redis-cli开始的内容: HMSET widget:1 id 0001 name 'widget ABC' model 'model123' service standard admin_password 82616416 HMSET widget:2 id 0002 name 'widget ABC' model 'model123' service standard admin_password 12341234 …