Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

high performance redis client implemented with cython

Project description

minimal redis client written in cython, 5X faster than redis-py.


execute command

>>> from credis import Connection
>>> conn = Connection(host='', port=6379)
>>> conn.execute('set', 'test', 1)
>>> conn.execute('get', 'test')

execute pipelined commands

>>> commands = [('set', 'test%d'%i, i) for i in range(3)]
>>> conn.execute_pipeline(*commands)
('OK', 'OK', 'OK')

connection pool for gevent

>>> from credis.geventpool import ResourcePool
>>> pool = ResourcePool(32, Connection, host='', port=6379)
>>> with pool.ctx() as conn:
...     conn.execute('get', 'test')
>>> pool.execute('get', 'test')
>>> commands = [('get', 'test%d'%i) for i in range(3)]
>>> pool.execute_pipeline(*commands)
('1', '2', '3')

Project details

Release history Release notifications

History Node


History Node


History Node


History Node


History Node


History Node


This version
History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
credis-1.0.2.tar.gz (70.5 kB) Copy SHA256 hash SHA256 Source None Aug 1, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page