Thanks to this post, I am trying out the asynchronous driver tornado-redis
. From the demo (Github example), it shows that how to do asynchronous gets using this library, but it is not clear to me that if the sets are asynchronous too (they do have a callback function).
So if possible, what is the correct way of doing asynchronous writes using tornado-redis
? Would it be something like this:
@tornado.web.asynchronous
@tornado.gen.engine
def post(self):
...
yield tornado.gen.Task(t.set,'key', 'value')