python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Django Redis Caching how can i set cache timeout to none (never expiring cache) in class base view
I'm using redis server for caching. Using django-redis package.
Below is my setting file :
CACHES = {
'default': {
'BACKEND': 'django_redis.cache.RedisCache',
'LOCATION': 'redis://...
Ganesh sali
Votes: 0
Answers: 0
Why does accessing Django cache during unit tests (manage.py test) produces datetime.datetime objects instead of expected values?
I have a Django app, and I'm trying to create unit tests for functions/methods that work with the cache. My tests are run using python manage.py test using the same Docker container that I use for run...
sunw
Votes: 0
Answers: 0
redis in django requirements
hello friends i work in Django project and use Redis for its chache.i run Redis in my local and i use docker for run Redis to (both Redis in local and Docker Rdis are ok and work for me for have redis...
fahime
Votes: 0
Answers: 1
RedisCache' object has no attribute 'ttl'
hello friends in new project i use Django4 and i set the "django.core.cache.backends.redis.RedisCache" for the cache but i have the error it say
"AttributeError: 'RedisCache' object has...
fahime
Votes: 0
Answers: 0


