nova/vendor/redis-py
2010-05-27 23:05:26 -07:00
..
redis initial commit 2010-05-27 23:05:26 -07:00
tests initial commit 2010-05-27 23:05:26 -07:00
.gitignore initial commit 2010-05-27 23:05:26 -07:00
CHANGES initial commit 2010-05-27 23:05:26 -07:00
INSTALL initial commit 2010-05-27 23:05:26 -07:00
LICENSE initial commit 2010-05-27 23:05:26 -07:00
MANIFEST.in initial commit 2010-05-27 23:05:26 -07:00
README.md initial commit 2010-05-27 23:05:26 -07:00
setup.py initial commit 2010-05-27 23:05:26 -07:00

redis-py

This is the Python interface to the Redis key-value store.

Usage

>>> import redis
>>> r = redis.Redis(host='localhost', port=6379, db=0)
>>> r.set('foo', 'bar')   # or r['foo'] = 'bar'
True
>>> r.get('foo')   # or r['foo']
'bar'

For a complete list of commands, check out the list of Redis commands here: http://code.google.com/p/redis/wiki/CommandReference

Author

redis-py is developed and maintained by Andy McCurdy (sedrik@gmail.com). It can be found here: http://github.com/andymccurdy/redis-py

Special thanks to:

  • Ludovico Magnocavallo, author of the original Python Redis client, from which some of the socket code is still used.
  • Alexander Solovyov for ideas on the generic response callback system.
  • Paul Hubbard for initial packaging support.