tags:

views:

48

answers:

1

I've heard of redis-cache but how exactly does it work? Is it used as a layer between django and my rdbms, by caching the rdbms queries somehow?

Or is it supposed to be used directly as the database? Which I doubt, since that github page doesn't cover any login details, no setup.. just tells you to set some config property.

+1  A: 

This Python module for Redis has a clear usage example in the readme: http://github.com/andymccurdy/redis-py

Or, since Redis is API compatible with Memcached, you can use Django's built in caching system with it: http://docs.djangoproject.com/en/dev/topics/cache/ .

Redis is designed to be a RAM cache. It supports basic GET and SET of keys plus the storing of collections such as dictionaries. You can cache RDBMS queries by storing their output in Redis. The goal would be to speed up your Django site. Don't start using Redis or any other cache until you need the speed - don't prematurely optimize.

Spike Gronim