Inserting a List into another List in Redis

后端 未结 3 415
灰色年华
灰色年华 2021-01-12 07:23

Is this possible to have a datastructure inside another data structure? So far I can only insert a string or a number into a list.

A desired data structure would be

3条回答
  •  太阳男子
    2021-01-12 07:27

    Yes, you can store a id lists in a list, each id is a pointer to other redis list. You can use a multi/exec Pipeline Multiple Commands architecture to do all CRUD operations

提交回复
热议问题