# 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.105.0
latest-operator-version: v26.2.2
latest-console-tag: v3.10.0
latest-redpanda-tag: v26.2.1
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
description: Stores each item in a directory as a file, where an item ID is the path relative to the configured directory.
page-git-created-date: "2024-05-24"
page-git-modified-date: "2026-08-12"
---

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

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`