Cover of Redis Commands Cheatsheet
Free PDF · 7 pages ~10 min

Redis Commands Cheatsheet

Decide the access pattern first, the structure follows

redisdata structurescaching

By signing in you agree to receive the resource and occasional system design emails from The Desi Architect. Unsubscribe anytime. Privacy policy

Every command carries the access pattern that justifies it and a runnable example. Decide how you will read the data first, and the data structure almost picks itself.

What's inside

Inside the cheatsheet

  • Strings, hashes, lists, sets and sorted sets, with when to use each and when not to
  • Runnable examples using Redis 6.2+ syntax
  • The common traps, like SET clearing a TTL unless you add KEEPTTL

More free resources