# withRedisReference

- Module: [CommunityToolkit.Aspire.Hosting.Posta](/reference/api/typescript/communitytoolkit.aspire.hosting.posta.md)
- Version: `13.5.0`
- Kind: `method`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1)

Configures the Redis server used by Posta.

## Definition

```typescript
interface PostaResource {
  // ... omitted for brevity
  withRedisReference(
    redis: RedisResource,
    redisPassword?: ParameterResource): PostaResource
}
```

## Parameters

- `redis` (`RedisResource`)
- `redisPassword` (`ParameterResource`) `optional`

## Returns

[PostaResource](/reference/api/typescript/communitytoolkit.aspire.hosting.posta/postaresource.md) `builder`

## Applies to

- [PostaResource](/reference/api/typescript/communitytoolkit.aspire.hosting.posta/postaresource.md)
