May 2018
Beginner to intermediate
526 pages
11h 57m
English
Let's configure the cache for our project. Edit the settings.py file of the educa project and add the following code to it:
CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211', }}
We are using the MemcachedCache backend. We specify its location using the address:port notation. If you have multiple Memcached instances, you can use a list for LOCATION.
Read now
Unlock full access