> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/open-source/use-harness-open-source/pipelines-1/samples/memcached.md).

# Memcached

This guide covers configuring continuous integration pipelines for projects that have a Memcached dependency.

## Basic Example <a href="#basic-example" id="basic-example"></a>

In the below example we demonstrate a pipeline that launches Memcached as a background step. The memecache server will be available at `cache:11211`, where the hostname matches the background step name.

```yaml
kind: pipeline
spec:
  stages:
  - type: ci
    spec:
      steps:
      - name: cache
        type: background
        spec:
          container: memcached:alpine
          args:
          - -vv

      - name: test
        type: run
        spec:
          container: ubuntu
          script: |-
            apt-get update -qq
            apt-get install -y -qq telnet > /dev/null
            (sleep 1; echo "stats"; sleep 2; echo "quit";) | telnet cache 11211 || true
```
