Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 38 lines (27 sloc) 0.912 kB
0cbef57 @kmerenkov Renamed project from rutabaga to brukva
kmerenkov authored
1 brükva
e3f945f @kmerenkov Added README
kmerenkov authored
2 ========
3
2288eee @kmerenkov Fix: README typo
kmerenkov authored
4 Asynchronous [Redis](http://redis-db.com/) client that works within [Tornado](http://tornadoweb.org/) IO loop.
e3f945f @kmerenkov Added README
kmerenkov authored
5
6
7 Usage
8 -----
9
0cbef57 @kmerenkov Renamed project from rutabaga to brukva
kmerenkov authored
10 >>> import brukva
11 >>> c = brukva.Client()
4f7b81b @kmerenkov Updated code example in README.
kmerenkov authored
12 >>> c.connect()
1bc9163 @kmerenkov Updated readme
kmerenkov authored
13 >>> def on_result(result):
14 (error, data) = result
e3f945f @kmerenkov Added README
kmerenkov authored
15 print data or error
16 >>> c.set('foo', 'bar', on_result)
17 >>> c.get('foo', on_result)
18 >>> c.hgetall('foo', on_result)
19 >>> c.connection._stream.io_loop.start() # start tornado mainloop
20 True
21 bar
22 ResponseError (on HGETALL [('foo',), {}]): Operation against a key holding the wrong kind of value
23
24
25 Credits
26 -------
0cbef57 @kmerenkov Renamed project from rutabaga to brukva
kmerenkov authored
27 brukva is developed and maintained by [Konstantin Merenkov](mailto:kmerenkov@gmail.com)
e3f945f @kmerenkov Added README
kmerenkov authored
28
29 * Inspiration: [redis-py](http://github.com/andymccurdy/redis-py)
30 * Third-party software: [adisp](https://code.launchpad.net/adisp)
31
661fc9e @kmerenkov Added LICENSE, mentioned it in readme.
kmerenkov authored
32
33 License
34 -------
35 See LICENSE file.
36 Long story short: WTFPL v2
37
Something went wrong with that request. Please try again.