Redis has a wealth of data structures, but not maps. Here is a non-exhaustive list of the data structures:
- Lists: Essentially a linked lists of string elements with elements in the order of insertion (first in, first out).
- Sets: Collections of unique, unsorted string elements.
- Sorted sets: A data structure similar to sets, but where every string element is associated with a score—which is a floating number. The elements inside the sorted set can be accessed (iterator) in order of the score. This allows use cases of leader board, such as "Top-10 performing hotels."
- Hashes: These are maps with an additional level of fields and associated values. This allows a partial update of the value (just a field) and efficient retrieval ...