| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 | [[modules-memcached]]== memcachedThe memcached module allows to expose *elasticsearch*APIs over the memcached protocol (as closelyas possible).It is provided as a plugin called `transport-memcached` and installingis explainedhttps://github.com/elasticsearch/elasticsearch-transport-memcached[here]. Another option is to download the memcached plugin and placing itunder the `plugins` directory.The memcached protocol supports both the binary and the text protocol,automatically detecting the correct one to use.[float]=== Mapping REST to Memcached ProtocolMemcached commands are mapped to REST and handled by the same genericREST layer in elasticsearch. Here is a list of the memcached commandssupported:[float]==== GETThe memcached `GET` command maps to a REST `GET`. The key used is theURI (with parameters). The main downside is the fact that the memcached`GET` does not allow body in the request (and `SET` does not allow toreturn a result...). For this reason, most REST APIs (like search) allowto accept the "source" as a URI parameter as well.[float]==== SETThe memcached `SET` command maps to a REST `POST`. The key used is theURI (with parameters), and the body maps to the REST body.[float]==== DELETEThe memcached `DELETE` command maps to a REST `DELETE`. The key used isthe URI (with parameters).[float]==== QUITThe memcached `QUIT` command is supported and disconnects the client.[float]=== SettingsThe following are the settings the can be configured for memcached:[cols="<,<",options="header",]|===============================================================|Setting |Description|`memcached.port` |A bind port range. Defaults to `11211-11311`.|===============================================================It also shares the uses the common<<modules-network,network settings>>.[float]=== Disable memcachedThe memcached module can be completely disabled and not started using bysetting `memcached.enabled` to `false`. By default it is enabled once itis detected as a plugin.
 |