tornado-redisAsynchronous Redis client which works within the Tornado Web Server IO loop. | |
Download |
tornado-redis Ranking & Summary
Advertisement
- License:
- WTFPL
- Price:
- FREE
- Publisher Name:
- Vlad Glushchuk
- Publisher web site:
- http://github.com/leporo/
tornado-redis Tags
tornado-redis Description
tornado-redis is an asynchronous Redis client that works within Tornado IO loop.This is basically a fork of brükva redis client slightly modified to work with tornado.gen interface instead of adisp.Usageimport tornadoredisimport tornado.webimport tornado.gen... c = tornadoredis.Client()c.connect()...class MainHandler(tornado.web.RequestHandler): @tornado.web.asynchronous @tornado.gen.engine def get(self): foo = yield tornado.gen.Task(c.get, 'foo') bar = yield tornado.gen.Task(c.get, 'bar') zar = yield tornado.gen.Task(c.get, 'zar') self.set_header('Content-Type', 'text/html') self.render("template.html", title="Simple demo", foo=foo, bar=bar, zar=zar)Tips on testingRun redis-server on localhost:6379. Run tests with the following command:python -m tornado.testing tornadoredis.testsReconnect tests have been disabled by default.Product's homepage
tornado-redis Related Software