DEV Community

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

vishalraj82 profile image
Vishal Raj

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

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.