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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -