HTTP memcached directives

memcached_pass directive

Location or if in location; retrieves a value from the named Memcached endpoint.

Formal Syntax & Structure

nginx syntaxnginx
memcached_pass address;

Parameters & Attributes

NameTypeDescription
addresshost:port | unix:path | upstream nameSelect an internal cache server. Values must be populated by another component; avoid shared keys for personalized responses.

Working Example

Example Snippetnginx
memcached_pass 127.0.0.1:11211;
Nginx Reference