All Key/Value API data types can be thought of as either unordered collections or ordered sequences of items. Collections and sequences can then be further classified as either unique or non-unique.
The table below shows each data type, its ordering and uniqueness guarantees, and the best use cases for the type.
| Ordered | Unique | Best for | |
|---|---|---|---|
| String | Indexed | No |
|
| List | Insertion | No |
|
| Set | No | Yes |
|
| Sorted Set | Score | Yes |
|
| Hash | No | Yes |
|
Best uses above only show use cases for individual types and do not include composite solutions.