tornado-redis
tornado-redis copied to clipboard
Add a support for new simplified generator-based syntax
Return Future instances instead of calling callbacks directly.
Add the support for simplified syntax:
@gen.coroutine
def some_method(self):
...
res = yield self.redis_client.get('mykey')
...
instead of
@gen.engine
def some_method(self):
...
res = yield gen.Task(self.redis_client.get, 'mykey')
...
Benchmark the performance change before merging changes to master.