# withModule

- Module: [Aspire.Hosting.Redis](/reference/api/typescript/aspire.hosting.redis.md)
- Version: `13.5.1`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/69db530a4816698cf1d5fa4557933e0ac4f127c6)

Configures the Redis resource to use the specified Redis module by providing its path inside the container.

## Definition

```typescript
interface RedisResource {
  // ... omitted for brevity
  withModule(path: string): RedisResource
}
```

## Parameters

- `path` (`string`)

## Returns

[RedisResource](/reference/api/typescript/aspire.hosting.redis/redisresource.md) `builder`

## Applies to

- [RedisResource](/reference/api/typescript/aspire.hosting.redis/redisresource.md)
