Setting up Memcached for Django session caching on App Engine

后端 未结 3 1031
抹茶落季
抹茶落季 2021-02-03 16:04

when setting up Django to use Memcached for caching (in my case, I want to to use session caching), in settings.py we set

CACHES = {
    \'default\         


        
3条回答
  •  遥遥无期
    2021-02-03 16:21

    The location should be set as your ip and port where your memcache daemon is running.

    Check this in django official documentation.

    Set LOCATION to ip:port values, where ip is the IP address of the Memcached daemon and port is the port on which Memcached is running, or to a unix:path value, where path is the path to a Memcached Unix socket file.

    https://docs.djangoproject.com/en/dev/topics/cache/

提交回复
热议问题