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

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -