[comment]: # ({3811eac3-88671f5d})
# 4 Memcached plugin

[comment]: # ({/3811eac3-88671f5d})

[comment]: # ({2abeb49a-2abeb49a})
#### Overview

This section lists parameters supported in the Memcached Zabbix agent 2
plugin configuration file (memcached.conf). 

Note that:

-   The default values reflect process defaults, not the values in the
    shipped configuration files;
-   Zabbix supports configuration files only in UTF-8 encoding without
    [BOM](https://en.wikipedia.org/wiki/Byte_order_mark);
-   Comments starting with "\#" are only supported at the beginning of
    the line.

[comment]: # ({/2abeb49a-2abeb49a})

[comment]: # ({72330bc6-63c43789})
#### Parameters

|Parameter|Mandatory|Range|Default|Description|
|--|--|--|--|----------|
|Plugins.Memcached.Default.Password|no| | |Default password for connecting to Memcached; used if no value is specified in an item key or named session.<br> Supported since version 6.0.18|
|Plugins.Memcached.Default.Uri|no| |tcp://localhost:11211|Default URI for connecting to Memcached; used if no value is specified in an item key or named session. <br><br>Should not include embedded credentials (they will be ignored).<br>Must match the URI format.<br>Supported schemes: `tcp`, `unix`; a scheme can be omitted.<br>A port can be omitted (default=11211).<br>Examples: `tcp://localhost:11211`<br>`localhost`<br>`unix:/var/run/memcached.sock`<br> Supported since version 6.0.18|
|Plugins.Memcached.Default.User|no| | |Default username for connecting to Memcached; used if no value is specified in an item key or named session.<br> Supported since version 6.0.18|
|Plugins.Memcached.KeepAlive|no|60-900|300|The maximum time of waiting (in seconds) before unused plugin connections are closed.|
|Plugins.Memcached.Sessions.<SessionName>.Password|no| | |Named session password.<br>**<SessionName>** - define name of a session for using in item keys.|
|Plugins.Memcached.Sessions.<SessionName>.Uri|no| | |Connection string of a named session.<br>**<SessionName>** - define name of a session for using in item keys.<br><br>Should not include embedded credentials (they will be ignored).<br>Must match the URI format.<br>Supported schemes: `tcp`, `unix`; a scheme can be omitted.<br>A port can be omitted (default=11211).<br>Examples: `tcp://localhost:11211`<br>`localhost`<br>`unix:/var/run/memcached.sock`|
|Plugins.Memcached.Sessions.<SessionName>.User|no| | |Named session username.<br>**<SessionName>** - define name of a session for using in item keys.|
|Plugins.Memcached.Timeout|no|1-30|global timeout|Request execution timeout (the duration, in seconds, to wait for a request to complete before shutting it down).|

See also:

-   Description of general Zabbix agent 2 configuration parameters:
    [Zabbix agent 2 (UNIX)](/manual/appendix/config/zabbix_agent2) /
    [Zabbix agent 2
    (Windows)](/manual/appendix/config/zabbix_agent2_win)
-   Instructions for configuring [plugins](/manual/config/items/plugins)

[comment]: # ({/72330bc6-63c43789})
