Skip to content
master
Go to file
Code
This branch is 76 commits ahead, 1 commit behind kmerenkov:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

brükva

Asynchronous Redis client that works within Tornado IO loop.

Usage

Input:

import logging
logging.basicConfig()
import brukva
c = brukva.Client()
c.connect()
loop = c.connection._stream.io_loop
def on_result(result):
    print result
c.set('foo', 'bar', on_result)
c.get('foo', on_result)
c.hgetall('foo', [on_result, lambda r: loop.stop()])
loop.start() # start tornado mainloop

Output:

True
bar
ERROR:brukva.client:ResponseError (on HGETALL [('foo',), {}]): Operation against a key holding the wrong kind of value
ResponseError (on HGETALL [('foo',), {}]): Operation against a key holding the wrong kind of value

Tips on testing

Run redis-server on localhost:6379 with option "timeout 1". Run tests with the following command:

./run_nose.sh

Credits

brukva is developed and maintained by Konstantin Merenkov

License

See LICENSE file. Long story short: WTFPL v2

About

Asynchronous Redis client that works within Tornado IO loop.

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.