Goal: make a table with composite with Redis database.
I have data stored in JSON in this format:
{
"customer_id" : "C001",
"order_id" : "O789",
"product_code": "P007",
"quantity": 1000,
}
My composite key would be customer_id and product_code. I tried to implement this in Redis-CLI with this Composite Primary Key equivalent in Redis
However, I am a bit lost how to use this in Python. Should I use ZADD() or something else?