DEV Community

Discussion on: Concurrent Redis writes and correctness (Take 2)

Collapse
vishalraj82 profile image
Vishal Raj

@munawwar Did you run some benchmarks for with and without NX flag ?

Collapse
munawwar profile image
Munawwar Author

Nope. Without NX, it would always overwrite the value right? Which means potentially two different values can be returned. So, rather than that, allow one, block anyone trying to overwrite, and make them read from redis again.