Upped version to 0.2.1

adds support for django-redis connections
This commit is contained in:
Ilan Steemers
2015-07-06 13:52:03 +02:00
parent aaeadeaa6b
commit 831427bcc0
5 changed files with 39 additions and 3 deletions
+15
View File
@@ -109,6 +109,21 @@ Connection settings for Redis. Defaults::
For more information on these settings please refer to the `Redis-py <https://github.com/andymccurdy/redis-py>`__ documentation
django_redis
~~~~~~~~~~~~
If you are already using `django-redis <https://github.com/niwinz/django-redis>`__ for your caching, you can take advantage of its excellent connection backend by supplying the name
of the cache connection you want to use::
# example django-redis connection
Q_CLUSTER = {
'name': 'DJRedis',
'workers': 4,
'timeout': 90,
'django_redis: 'default'
}
.. tip::
Django Q uses your :const:`SECRET_KEY` to encrypt task packages and prevent task crossover. So make sure you have it set up in your Django settings.