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
cache:
label: ""
memcached:
addresses: [] # No default (required)
prefix: "" # No default (optional)
default_ttl: 300s
cache:
label: ""
memcached:
addresses: [] # No default (required)
prefix: "" # No default (optional)
default_ttl: 300s
retries:
initial_interval: 1s
max_interval: 5s
max_elapsed_time: 30s
Fields
default_ttl
The expiration applied to items that are written without a TTL of their own. Memcached expirations have a resolution of one second, so any fraction of a second is dropped.
Type: string
Default: 300s
prefix
An optional string prepended to every item key, so that multiple caches can share one memcached cluster under different namespaces.
Type: string
retries.initial_interval
The initial period to wait between retry attempts. The retry interval increases for each failed attempt, up to the max_interval value. This field accepts Go duration format strings such as 100ms, 1s, or 5s.
Type: string
Default: 1s
# Examples:
initial_interval: 50ms
# ---
initial_interval: 1s