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
Simple answer: No, Redis list members can only be strings.
Complex answer: There is a lot you can do with strings. You can serialize a list into a string using a number of different formats (JSON, XML, CSV, language specific serialization, etc.). Redis can hold pretty large string values so you can store just identifiers which point to a key containing the real values, or you can have a serialized list of the values themselves.