oceanlove Memcached is installed server-side.
To use it, first spin up memcached in a SSH session like:
memcached -d -s $HOME/apps/appname/memcached.sock -P $HOME/apps/appname/memcached.pid -m 100
(The -M 100
parameter is the size of the cache in MB, adjust as needed).
Once that's done, configure your Django settings to connect to memcached on its socket, eg:
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': 'unix:/home/user/apps/appname/memcached.sock',
}
}
Hope this helps!