simonklee / pack-command

MIT License
3 stars 3 forks source link

Build Status

Pack Command

A C extension to optimize Redis format for redis-py.

Usage

import redis
import pack_command

class MyConnection(redis.Connection):
    pack_command = pack_command.pack_command

pool = redis.ConnectionPool(connection_class=MyConnection)

conn = redis.StrictRedis(connection_pool=pool)
print conn.exists('foo')

Note about redis-py version

Only works with redis-py<=2.9.x