# Caches

> 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)

---
title: Caches
latest-connect-version: 4.93.0
latest-operator-version: v26.1.4
latest-console-tag: v3.7.3
latest-redpanda-tag: v26.1.9
docname: caches/about
page-component-name: connect
page-version: master
page-component-version: master
page-component-title: Connect
page-relative-src-path: caches/about.adoc
page-edit-url: https://github.com/redpanda-data/rp-connect-docs/edit/main/modules/components/pages/caches/about.adoc
page-git-created-date: "2024-05-24"
page-git-modified-date: "2024-09-09"
---

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

A cache is a key/value store which can be used by certain components for applications such as deduplication or data joins. Caches are configured as a named resource:

```yaml
cache_resources:
  - label: foobar
    memcached:
      addresses:
        - localhost:11211
      default_ttl: 60s
```

> It’s possible to layer caches with read-through and write-through behavior using the [`multilevel` cache](https://docs.redpanda.com/connect/components/caches/multilevel/).

And then any components that use caches have a field `resource` that specifies the cache resource:

```yaml
pipeline:
  processors:
    - cache:
        resource: foobar
        operator: add
        key: '${! json("message.id") }'
        value: "storeme"
    - mapping: root = if errored() { deleted() }
```

For the simple case where you wish to store messages in a cache as an output destination for your pipeline check out the [`cache` output](https://docs.redpanda.com/connect/components/outputs/cache/). To see examples of more advanced uses of caches such as hydration and deduplication check out the [`cache` processor](https://docs.redpanda.com/connect/components/processors/cache/).

You can find out more about resources [in this document.](https://docs.redpanda.com/connect/configuration/resources/)