How can I use Tornado and Redis asynchronously?

后端 未结 4 698
天涯浪人
天涯浪人 2021-02-04 07:31

I\'m trying to find how can I use Redis and Tornado asynchronously. I found the tornado-redis but I need more than just add a yield in the code.

I have the

4条回答
  •  情话喂你
    2021-02-04 08:03

    You need to use Tornado IOLoop compatible redis client.

    There are few of them available, toredis, brukva, etc.

    Here's pubsub example in toredis: https://github.com/mrjoes/toredis/blob/master/tests/test_handler.py

提交回复
热议问题