Memcached

Memcached is an in-memory key-value store that can be used e.g. for caching data in your application to improve performance.

Installation / Configuration

Memcached is fully configured through the Custom JSON Server Level Configuration.

Enable

To install and enable memcached, set memcached::ensure to present.

Memory Ratio

By default, a memcached::memory_ratio of 8 is used, which means memcached will take up to 1/8 of this servers total memory.

Listening address and port

By default, memcached will listen on the localhost interface on port 11211.

If memcached should bind to another address and port, use the memcached::address and memcached::port parameters to specify it.

Example Configuration

Configuration through Custom JSON Server Level Configuration.

{
  "memcached::ensure": "present",
  "memcached::memory_ratio": "8",
  "memcached::address": "127.0.0.1",
  "memcached::port": "11211"
}