Skip to main content

Async Redis connection object using Greenlets and Tornado

Project description

An asynchronous redis::Connection object using Greenlets and Tornado’s event-loop.


To install gretis, simply:

$ sudo pip install gretis

or alternatively (you really should be using pip though):

$ sudo easy_install gretis

or from source:

$ sudo python install

Getting Started

Create a redis ConnectionPool instructing it to use the Gredis AsyncConnection as its connection.

>>> import redis
>>> from gretis.async_connection import AsyncConnection
>>> pool = redis.ConnectionPool(connection_class=AsyncConnection,
                                host='localhost', port=6379, db=0,
>>> r = redis.StrictRedis(connection_pool=pool)
>>> r.set('foo', 'bar')
>>> r.get('foo')

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for gretis, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size gretis-0.0.1.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page