# Memcached

Before configuring the Memcached driver, please make sure that the Memcached Server is installed and running. You can read more about this [in the documentation](https://memcached.org/).

## Configuration

The complete memcached driver configuration:

{% code title=".rr.yaml" %}

```yaml
version: "3"

kv:
  # User defined name of the storage.
  memcached:
    # Required section.
    # Should be "memcached" for the memcached driver.
    driver: memcached
    config:
      # Optional section.
      # Default: "127.0.0.1:11211"
      addr: "127.0.0.1:11211"
```

{% endcode %}

## Options

Below is a more detailed description of each of the memcached-specific options:

### Addr

`addr`: String of memcached connection in format "`[HOST]:[PORT]`".

In the case that there are several memcached servers, then the list of connections can be listed in an array format, for example:

{% code title=".rr.yaml" %}

```yaml
version: "3"

kv:
  memcached:
    driver: memcached
    config:
      addr: [ "127.0.0.1:11211", "127.0.0.1:11222" ]
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.roadrunner.dev/docs/key-value/memcached.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
