# SchemaWithCacheAsync

> This document is the Markdown version of [valibot.dev/api/SchemaWithCacheAsync/](https://valibot.dev/api/SchemaWithCacheAsync/). For the complete documentation index, see [llms.txt](https://valibot.dev/llms.txt).

Schema with cache async type.

## Generics

- `TSchema` `extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>`
- `TCacheConfig` `extends CacheConfig | undefined`

## Definition

- `SchemaWithCacheAsync` `extends TSchema`
  - `async` `true`
  - `cacheConfig` `TCacheConfig`
  - `cache` `Cache<OutputDataset<InferOutput<TSchema>, InferIssue<TSchema>>>`
