O'Reilly logo

NGINX High Performance by Rahul Sharma

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Memcache

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.

Note

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required