DEV Community

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

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.