# RedisInsightResource

- Module: [Aspire.Hosting.Redis](/reference/api/go/aspire.hosting.redis.md)
- Version: `17.0.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

## Definition

```go
type RedisInsightResource interface {
    IComputeResource
    Resource
    ResourceWithArgs
    ResourceWithEndpoints
    ResourceWithEnvironment
    ResourceWithWaitSupport
}
```

## Embeds

- `IComputeResource`
- `Resource`
- `ResourceWithArgs`
- `ResourceWithEndpoints`
- `ResourceWithEnvironment`
- `ResourceWithWaitSupport`

## Methods

- [WithDataBindMount](/reference/api/go/aspire.hosting.redis/redisinsightresource/withdatabindmount.md) -- `method` -- Adds a bind mount for the data folder to a Redis Insight container resource.
  ```go
  WithDataBindMount(source string) RedisInsightResource
  ```
- [WithDataVolume](/reference/api/go/aspire.hosting.redis/redisinsightresource/withdatavolume.md) -- `method` -- Adds a named volume for the data folder to a Redis Insight container resource.
  ```go
  WithDataVolume(options ...*RedisInsightResourceWithDataVolumeOptions) RedisInsightResource
  ```
- [WithHostPort](/reference/api/go/aspire.hosting.redis/redisinsightresource/withhostport.md) -- `method` -- Configures the host port that the Redis Insight resource is exposed on instead of using randomly assigned port.
  ```go
  WithHostPort(port *float64) RedisInsightResource
  ```
