[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/cache](../../README) / [index](../README) / CacheConfig

# Function: CacheConfig()

> **CacheConfig**(`options?`): [`CacheConfigShape`](../interfaces/CacheConfigShape)

Defined in: [cache/src/config.ts:43](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/cache/src/config.ts#L43)

Create a typed cache configuration object with defaults.

## Parameters

### options?

`Partial`\<[`CacheConfigShape`](../interfaces/CacheConfigShape)\> = `{}`

## Returns

[`CacheConfigShape`](../interfaces/CacheConfigShape)

## Example

```ts
import { CacheConfig } from '@zerotal/cache';
export default CacheConfig({ driver: 'sqlite', ttl: 600 });
```
