Filip Pytloun | e21bc77 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 1 | |
OlgaGusarenko | ebacbc2 | 2018-07-30 23:35:53 +0300 | [diff] [blame] | 2 | ====== |
| 3 | Usage |
| 4 | ====== |
Filip Pytloun | e21bc77 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 5 | |
Ales Komarek | 37cf5fc | 2018-01-30 22:11:02 +0100 | [diff] [blame] | 6 | Memcached is an in-memory key-value store for small chunks of arbitrary data |
| 7 | (strings, objects) from results of database calls, API calls, or page |
| 8 | rendering. |
Filip Pytloun | e21bc77 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 9 | |
Ales Komarek | 37cf5fc | 2018-01-30 22:11:02 +0100 | [diff] [blame] | 10 | Sample Metadata |
Filip Pytloun | e21bc77 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 11 | =============== |
| 12 | |
Filip Pytloun | e21bc77 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 13 | .. code-block:: yaml |
| 14 | |
| 15 | memcached: |
| 16 | server: |
| 17 | enabled: true |
| 18 | cache_size: 64 |
Pascal Liehne | 5cb231b | 2018-03-12 22:16:44 +0100 | [diff] [blame] | 19 | slabsize: 1m |
Filip Pytloun | e21bc77 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 20 | bind: |
| 21 | address: 0.0.0.0 |
| 22 | port: 11211 |
| 23 | protocol: tcp |
| 24 | |
Oleksandr Bryndzii | 004a8ff | 2018-10-24 12:48:38 +0300 | [diff] [blame] | 25 | Enable/Disable tcp/udp listener |
| 26 | =============================== |
| 27 | |
| 28 | .. code-block:: yaml |
| 29 | |
| 30 | memcached: |
| 31 | server: |
| 32 | enabled: true |
| 33 | cache_size: 64 |
| 34 | slabsize: 2m |
| 35 | threads: 1 |
| 36 | bind: |
| 37 | address: 0.0.0.0 |
| 38 | port: 11211 |
| 39 | proto: |
| 40 | tcp: |
| 41 | enabled: True |
| 42 | udp: |
| 43 | enabled: True |
| 44 | ====== |
| 45 | Note: |
| 46 | ====== |
| 47 | The following pillar option is deprecated and does not affect any functionality: |
| 48 | ================================================================================ |
| 49 | .. code-block:: yaml |
| 50 | bind: |
| 51 | protocol: tcp |
Ales Komarek | 37cf5fc | 2018-01-30 22:11:02 +0100 | [diff] [blame] | 52 | |
| 53 | References |
| 54 | ========== |
Filip Pytloun | e21bc77 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 55 | |
| 56 | * http://memcached.org/ |