> ## 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 Memory Cache • TypeScript AI Agent SDK

> createMemoryCache: API reference for createMemoryCache

# createMemoryCache

<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 createMemoryCache(config?: CacheConfig) -> MemoryCache
```

### Returns

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

## Uses

* `MemoryCache`

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="JS Memory" icon="database" href="/docs/js/memory" />

  <Card title="JS Memory CLI" icon="terminal" href="/docs/js/memory-cli" />

  <Card title="JS Memory Hooks" icon="anchor" href="/docs/js/memory-hooks" />

  <Card title="JS Cache" icon="hard-drive" href="/docs/js/cache-cli" />
</CardGroup>
