How to store array of objects in Redis?

后端 未结 3 1232
时光取名叫无心
时光取名叫无心 2021-01-13 06:44

I have an array of Objects that I want to store in Redis. I can break up the array part and store them as objects but I am not getting how I can get somethings like

<
3条回答
  •  抹茶落季
    2021-01-13 06:59

    The first issue you have, SADD id {"name" : "Saras"} //wrong, is obvious since the "id" key is not of type set, it is a string type.

    In redis the only access point to data is through its key. As kiss said, perhaps you should be looking for other tools.

提交回复
热议问题