django-redis-cache
django-redis-cache copied to clipboard
A Redis cache backend for django
Hi, this project is widely used by the django community and could have more frequent updates if it could be available at https://jazzband.co/ Could you please consider it?
memcached backend didnt raise ConnectionError, so why redis-cache do? maybe add setting like 'SKIP_CONNECTION_ERRORS'?
In [17]: from django.core.cache import cache In [18]: cache.sadd('test', 1, 2, 3) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) in () ----> 1 cache.sadd('test', 1, 2, 3) /usr/local/lib/python2.7/site-packages/django/core/cache/__init__.pyc in __getattr__(self,...
hi, I'm getting the following errors. It seems to be version related. 'RedisCache' object has no attribute 'master_client' Request Method: GET Request URL: http://127.0.0.1:8000/admin/redis_admin/manage/ Django Version: 1.10.6 Exception Type: AttributeError...
Setting the LOCATION to a tcp-hostname shall imply port :6379, if the port is not specified. In fact I think the software does so implicitly, but the documetation insists of...
In the `get_or_set()` implementation, the dogpile lock never expires. In some edge cases it can creates some issues, here is an example: https://github.com/sebleier/django-redis-cache/blob/918fe0b7f13a539f45e3bee240bd4d2d513d1689/redis_cache/backends/base.py#L410 - L410: value is None -> we...
It would be useful to have an option to ignore Redis exceptions, something like this: ```python CACHES = { 'default': { 'BACKEND': 'redis_cache.RedisCache', 'LOCATION': ['localhost:6379'], 'OPTIONS': { 'DB': 1, 'IGNORE_EXCEPTIONS':...
I noticed a possible connection pooling problem. Django seems to create one cache backend object per thread. However, the redis_cache backend creates one connection pool per instance. Therefore the max_connections...
With ``MASTER_CACHE_ONLY_FOR_WRITE`` option, it's possible to use only slaves for read operations (as described in documentation). It could be useful when you have your Redis servers in different data centers...
Greetings! I have tried to append new behaviour to the lib because as some people from my office needed the same stuff i thought it would be awesome by extend...