Inserting a List into another List in Redis

后端 未结 3 440
灰色年华
灰色年华 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条回答
  •  梦毁少年i
    2021-01-12 07:25

    Redis have a very limited set of data types which can be found here: Data types

    What you can do is to store the names of element lists in a list so it will effectively act as list of lists.

提交回复
热议问题