# file

> 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: file
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/file
page-component-name: connect
page-version: master
page-component-version: master
page-component-title: Connect
page-relative-src-path: caches/file.adoc
page-edit-url: https://github.com/redpanda-data/rp-connect-docs/edit/main/modules/components/pages/caches/file.adoc
page-git-created-date: "2024-05-24"
page-git-modified-date: "2026-05-26"
---

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

**Type:** Cache ▼

[Cache](https://docs.redpanda.com/connect/components/caches/file/)[Input](https://docs.redpanda.com/connect/components/inputs/file/)[Output](https://docs.redpanda.com/connect/components/outputs/file/)

**Available in:** Self-Managed

Stores each item in a directory as a file, where an item ID is the path relative to the configured directory.

```yml
caches:
  file:
    directory: "" # No default (required)
```

This type currently offers no form of item expiry or garbage collection, and is intended to be used for development and debugging purposes only.

## [](#fields)Fields

### [](#directory)`directory`

The directory within which to store items.

**Type**: `string`