February 2018
Beginner to intermediate
348 pages
9h 40m
English
Memcached is a daemon application that can be connected via sockets. Its main purpose, as the name suggests, is to provide an efficient distributed key/value memory caching system. The Nginx Memcached module provides directives, allowing you to configure access to the Memcached daemon:
|
Directive |
Description |
|
memcached_pass Context: location, if |
Defines the hostname and port of the Memcached daemon. Syntax: memcached_pass hostname:port; Example: memcached_pass localhost:11211; |
|
memcached_bind Context: http, server, location |
Forces Nginx to use the specified local IP address for connecting to the Memcached server. This can come in handy if your server has multiple network cards connected to different networks. |