I have a redis JSON collection and it must to store items unique.
[
{
"name": "John",
"tId": 13,
"phone": "124",
"city":"LA"
},
{
"name": "Jane",
"tId": 14,
"phone": "256",
"city":"NYC"
}
]
In this JSON, I want to keep name unique. The other attributes can be duplicate. However, all collection must only 1 item with name John or whatever.
What kind of index do that? Do I need to use RedisBloom?