>_ IzzyLab

Topic breakdown

Besides simple values, Redis can store hashes — a set of fields under a single key, essentially a small dictionary; this is handy for profiles and structured records. You can write several "field value" pairs into one hash at once with a single hash-set command in one redis-cli call. The colon in a key name (type:id) is just a naming convention for readability; Redis itself doesn't treat it specially in any way.

What's checked

  1. field name of hash user:1 equals Anna
  2. field age of hash user:1 equals 30

What it looks like