Skip to content

akkakks/tornado-redisclient

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WARNING

https://github.com/phus/tornado-redisclient - go there if you want working tornado-redisclient.

tornado-redisclient

Asynchronous Redis client that works within Tornado IOloop.

Usage

>>> from tornado import ioloop
>>> from redisclient import AsyncRedisClient
>>> def handle_request(result):
       print 'Redis reply: %r' % result
       ioloop.IOLoop.instance().stop()
>>> redis_client = AsyncRedisClient(('127.0.0.1', 6379))
>>> redis_client.fetch(('set', 'foo', 'bar'), None)
>>> redis_client.fetch(('get', 'foo'), handle_request)
>>> ioloop.IOLoop.instance().start()
Redis reply: 'bar'

Credits

tornado-redisclient is developed and maintained by Phus Lu

License

Apache License, Version 2.0

About

a tornado redis client like tornado.httpclient

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%