I am trying the code in the django-redis documentation page (http://niwinz.github.io/django-redis/latest/#_expire_persist):
from django.core.cache import cache
cache.set("foo", "value", timeout=25)
I am getting an error message when running this code: "redis.exceptions.ConnectionError: Error 10061 connecting to 127.0.0.1:6379. No connection could be made because the target machine actively refused it."
I set my cache settings in the settings.py page as described in the documentation, and I do not think the problem is being caused by a firewall, as I was able to get the regular redis caching with JSON to work. What could be causing the problem, and how should I fix it?