---
title: memcached
latest-connect-version: 4.118.0
latest-operator-version: v26.2.6
latest-console-tag: v3.14.0
latest-redpanda-tag: v26.2.7
docname: caches/memcached
page-component-name: connect
page-version: master
page-component-version: master
page-component-title: Connect
page-relative-src-path: caches/memcached.adoc
page-edit-url: https://github.com/redpanda-data/rp-connect-docs/edit/main/modules/components/pages/caches/memcached.adoc
description: 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.
page-cloud-available: "true"
page-cloud-available-url: https://docs.redpanda.com/cloud-data-platform/develop/connect/components/caches/memcached/
page-git-created-date: "2024-05-24"
page-git-modified-date: "2026-10-29"
page-generated-sources:
  - include: connect:components:partial$descriptions/caches/memcached.adoc
    generator: null
    version: null
    source: the component specs in https://github.com/redpanda-data/connect
  - include: connect:components:partial$availability/caches/memcached.adoc
    generator: null
    version: null
    source: the component specs in https://github.com/redpanda-data/connect
  - include: connect:components:partial$fields/caches/memcached.adoc
    generator: null
    version: null
    source: the component specs in https://github.com/redpanda-data/connect
page-generated-content: partial
---

# memcached

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [connect-full.txt](https://docs.redpanda.com/connect-full.txt)

<!-- Source: https://docs.redpanda.com/connect/components/caches/memcached.md -->

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

```yml
cache:
  label: ""
  memcached:
    addresses: [] # No default (required)
    prefix: "" # No default (optional)
    default_ttl: 300s
```

#### Advanced

```yml
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

### `addresses[]`

A list of addresses of memcached servers to use.

**Type**: `array<string>`

### `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`

Determine time intervals and cut offs for retry attempts.

**Type**: `object`

### `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`

```yaml
# Examples:
initial_interval: 50ms

# ---

initial_interval: 1s
```

### `retries.max_elapsed_time`

The maximum overall period of time to spend on retry attempts before the request is aborted.

**Type**: `string`

**Default**: `30s`

```yaml
# Examples:
max_elapsed_time: 1m

# ---

max_elapsed_time: 1h
```

### `retries.max_interval`

The maximum period to wait between retry attempts

**Type**: `string`

**Default**: `5s`

```yaml
# Examples:
max_interval: 5s

# ---

max_interval: 1m
```