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
- Advanced
# Common config fields, showing default valueslabel: ""memcached:addresses:- localhost:11211prefix: ""ttl: 300
# All config fields, showing default valueslabel: ""memcached:addresses:- localhost:11211prefix: ""ttl: 300retries: 3retry_period: 500ms
This cache type supports setting the TTL individually per key by using the
dynamic ttl
field of a cache processor or output in order to
override the general TTL configured at the cache resource level.
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: int
Default: 300
retries
​
The maximum number of retry attempts to make before abandoning a request.
Type: int
Default: 3
retry_period
​
The duration to wait between retry attempts.
Type: string
Default: "500ms"