Redis Data Types Cheat Sheet

Want to quickly review what all these data types of Redis is for? Read on!

Posted by Darwin Biler on May 13, 2017

I assume you already know what/why/how to use Redis but more of trying to recall what are the data types of Redis is, then you've come to the right post.

Data Type Command Prefix Sorting Unique O(1) Operations Good for
String N/A N/A No - key-value store, counters
List L sorted by insertion order No add in head, remove in tail -
Set S unordered yes add, remove, and test for existence -
Hash H - - - -
Sorted Sets Z sorted by score yes - -

Did you find this useful?

I'm always happy to help! You can show your support and appreciation by Buying me a coffee (I love coffee!).