> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# create File Cache • TypeScript AI Agent SDK

> createFileCache: API reference for createFileCache

# createFileCache

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**cache**](../modules/cache) module.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def createFileCache(config?: CacheConfig & { cacheDir?: string }) -> FileCache
```

### Returns

<ResponseField name="Returns" type="FileCache">
  The result of the operation.
</ResponseField>

## Uses

* `FileCache`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-ts/src/cache/index.ts#L251">
  `src/cache/index.ts` at line 251
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="JS Cache CLI" icon="hard-drive" href="/docs/js/cache-cli" />

  <Card title="JS Memory" icon="database" href="/docs/js/memory" />

  <Card title="JS Files" icon="file" href="/docs/js/files" />
</CardGroup>
