express-brute-redis icon indicating copy to clipboard operation
express-brute-redis copied to clipboard

Using `incr` instead of `set`

Open Fritte opened this issue 7 years ago • 0 comments

You are updating the value in the Redis key with set whereby the value is passed from the calling express-brute module. But the value might have changed in the meantime. Thus, incr should be used instead of set to ensure an atomic operation at this point.

Fritte avatar Sep 18 '17 21:09 Fritte