Memcache is a generic-purpose memory-caching system. It is often used to speed up slow data access. The NGINX memcached module presents various directives that can be configured to serve content directly from Memcache, thus avoiding requests to the upstream server.
In addition to the directives, the module also creates the
$memcached_key variable, which is used to perform cache lookup. Before using the Memcache lookup, a value must be set in the
$memcached_key variable, which is determined from the request URL.
It is important to note that the NGINX Memcache module only performs the lookup for the specified
$memcached_key variable. It does not perform any write backs to the cache for the specified key. A value corresponding to ...