memcached

Connects to a cluster of memcached services, a prefix can be specified to allow multiple cache types to share a memcached cluster under different namespaces.

# Common config fields, showing default values
memcached:
addresses:
- localhost:11211
prefix: ""
ttl: 300

Fields

addresses

A list of addresses of memcached servers to use.

Type: array
Default: ["localhost:11211"]

prefix

An optional string to prefix item keys with in order to prevent collisions with similar services.

Type: string
Default: ""

ttl

A TTL in seconds to set for items, after this period keys will be removed.

Type: number
Default: 300

retries

The maximum number of retry attempts to make before abandoning a request.

Type: number
Default: 3

retry_period

The duration to wait between retry attempts.

Type: string
Default: "500ms"