我想使用散列(嵌套散列)的散列。例如,redis中的嵌套散列
{Key 1 ->
{Subkey 1 -> {Value1, Value2...},
Subkey 2 -> {Value1, Value2...},
.
.
Subkey n -> {Value1, Value2...}
}
Key 2 -> {...}
.
.
Key n -> {...}
}
告诉我如何在redis中定义此结构以及如何访问这些值。我正在尝试在红宝石上使用它。
据我所知,redis不支持Hash数据结构的嵌套散列。 – Rubysmith