I wanted to migrate from django-redis to the new built-in Redis caching back-end.
Previously I could access the existing connection with django_redis.get_redis_connection to get a redis-py client.
For example, explained here.
Is there something similar to obtain a redis-py object from the caching setting in Django?
from django.core.cache import caches
caches["default"] returns a RedisCache object.
Or is the solution to stick to django-redis?
Kind regards,
Benedikt Vogler
-- You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7e056cdd-48f9-44d2-9daf-562de1e215c5n%40googlegroups.com.
No comments:
Post a Comment