</>CodexBash
All articles
Databases

Redis data structures

A practical tour of Redis's types: strings, lists, sets, hashes, sorted sets, streams, bitmaps and HyperLogLog, with the commands, the cost of each, and the real problems each one solves.

CodexBash, , 5 min read

Most key-value stores treat values as opaque blobs. Redis does not: each value has a type, and each type has commands that do real work on the server, atomically and in microseconds. Choosing the right type is most of what it means to use Redis well. This tour covers each type, what it costs, and the problem it is best at.

Sign in to read the rest

The whole 5 minute article is free with an account, along with every problem, lesson and tutorial. No card.