Skip to main content

What it flags

An incr, incrby or hincrby followed by expire or pexpire on the same key and client takes two round trips and is not atomic: a crash between them leaves the counter without a TTL.

How to review or fix

Send both in one multi() (with NX on Redis 7+) or a Lua script. NX keeps the TTL set by the first increment, while a plain expire refreshes it on every increment; leave out NX if the window should restart on each hit.

Configuration

Set the rule to "off" in loadwise.config.json to drop its findings: