>_ IzzyLab

Topic breakdown

INCR/INCRBY atomically increment an integer stored in a key (creating it from zero if the key didn't exist). Atomicity is critical: with many clients, the "GET → +1 → SET" sequence loses updates in a race, while INCR runs on the server as a single indivisible operation. The symmetric commands are DECR/DECRBY, and for fractional numbers there's INCRBYFLOAT. Such counters are a typical technique for metrics, rate limits and ID generation.

What's checked

  1. the counter increased by 25
  2. atomic INCRBY, no SET

What it looks like