express-brute-redis
express-brute-redis copied to clipboard
Using `incr` instead of `set`
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.