> ## 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.

# cache • TypeScript AI Agent SDK

> * Cache System - In-memory and persistent caching for agents

# cache

<Badge color="green">TypeScript AI Agent</Badge>

* Cache System - In-memory and persistent caching for agents
  Inspired by mastra's cache module

## Import

```typescript theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
import { cache } from 'praisonai';
```

## Classes

<CardGroup cols={2}>
  <Card title="CacheConfig" icon="brackets-curly" href="../classes/CacheConfig">
    TypeScript CacheConfig class
  </Card>

  <Card title="CacheEntry" icon="brackets-curly" href="../classes/CacheEntry">
    TypeScript CacheEntry class
  </Card>

  <Card title="MemoryCache" icon="brackets-curly" href="../classes/MemoryCache">
    TypeScript MemoryCache class
  </Card>

  <Card title="FileCache" icon="brackets-curly" href="../classes/FileCache">
    TypeScript FileCache class
  </Card>
</CardGroup>

## Functions

<CardGroup cols={2}>
  <Card title="createMemoryCache()" icon="function" href="../functions/createMemoryCache">
    Function definition.
  </Card>

  <Card title="createFileCache()" icon="function" href="../functions/createFileCache">
    Function definition.
  </Card>
</CardGroup>

***

## 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" />
</CardGroup>
