Redis INCR concurrency -


i using redis' incr generate id objects. , use zadd add object using id key.

do need worry if there multiple connections executing same block of code? after id:12 if 2 connections connect @ same time , both add object using id:13, 1 of them lost.

since redis single threaded, can never happen - 1 client can make change database @ time.


Comments