Skip to content
Theory · Redis: Data Structures, TTL, Eviction · lesson 3 of 12

Hashes and lists

Not everything on the board at the counter is a separate note. A menu item hangs as a card with labeled lines: name, category, price. And the barista clips orders as tickets onto a rail: a new ticket goes to the end, and the first one is made next. For such things Redis has two value types: the hash and the list.

In this lesson

  • Hash
  • Hash or JSON in a string
  • List
  • Common mistake
  • Key points