>_ IzzyLab

Topic breakdown

Redis is a fast key-value database that keeps data in RAM; a common use case is counters and caching. You talk to the server with the redis-cli client. For counters there is an atomic increment command: in a single operation it adds one to the key's numeric value, and if the key doesn't exist yet, Redis treats it as zero and creates it itself — no separate initialization is needed. Atomicity guarantees a correct count even under concurrent access.

What's checked

  1. visits counter equals 5
  2. the counter was built up with INCR increments

What it looks like