**@tevm/bundler-cache** ∙ [README](../README.md) ∙ [API](../API.md)

***

[API](../API.md) > createCache

# Function: createCache()

> **createCache**(`cacheDir`, `fs`, `cwd`): [`Cache`](../type-aliases/Cache.md)

Creates a Tevm cache object for reading and writing cached items

## Parameters

▪ **cacheDir**: `string`

▪ **fs**: [`FileAccessObject`](../type-aliases/FileAccessObject.md)

▪ **cwd**: `string`

## Returns

## Source

[createCache.js:14](https://github.com/evmts/tevm-monorepo/blob/main/bundler-packages/bundler-cache/src/createCache.js#L14)

***
Generated using [typedoc-plugin-markdown](https://www.npmjs.com/package/typedoc-plugin-markdown) and [TypeDoc](https://typedoc.org/)
