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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -