# Aspire.Hosting.Redis

- Module: `Aspire.Hosting.Redis`
- Version: `13.6.0`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62)
- Functions: `14`
- Types: `3`

## Types

- [RedisCommanderResource](/reference/api/typescript/aspire.hosting.redis/rediscommanderresource.md) -- `handle` - 1 members
- [RedisInsightResource](/reference/api/typescript/aspire.hosting.redis/redisinsightresource.md) -- `handle` - 3 members
- [RedisResource](/reference/api/typescript/aspire.hosting.redis/redisresource.md) -- `handle` - 17 members -- A resource that represents a Redis resource independent of the hosting model.

## Functions

- [addRedis](/reference/api/typescript/aspire.hosting.redis/addredis.md) -- `method` -- Adds a Redis container to the application model.
- [withDataBindMount](/reference/api/typescript/aspire.hosting.redis/withdatabindmount-aspire-hosting-applicationmodel-redisresource-string-boolean.md) -- `method` -- Adds a bind mount for the data folder to a Redis container resource and enables Redis persistence.
- [withDataBindMount](/reference/api/typescript/aspire.hosting.redis/withdatabindmount-aspire-hosting-redis-redisinsightresource-string.md) -- `method` -- Adds a bind mount for the data folder to a Redis Insight container resource.
- [withDataVolume](/reference/api/typescript/aspire.hosting.redis/withdatavolume-aspire-hosting-applicationmodel-redisresource-string-boolean.md) -- `method` -- Adds a named volume for the data folder to a Redis container resource and enables Redis persistence.
- [withDataVolume](/reference/api/typescript/aspire.hosting.redis/withdatavolume-aspire-hosting-redis-redisinsightresource-string.md) -- `method` -- Adds a named volume for the data folder to a Redis Insight container resource.
- [withHostPort](/reference/api/typescript/aspire.hosting.redis/withhostport-aspire-hosting-redis-rediscommanderresource-number.md) -- `method` -- Configures the host port that the Redis Commander resource is exposed on instead of using randomly assigned port.
- [withHostPort](/reference/api/typescript/aspire.hosting.redis/withhostport-aspire-hosting-redis-redisinsightresource-number.md) -- `method` -- Configures the host port that the Redis Insight resource is exposed on instead of using randomly assigned port.
- [withHostPort](/reference/api/typescript/aspire.hosting.redis/withhostport-aspire-hosting-applicationmodel-redisresource-number.md) -- `method` -- Configures the host port that the Redis resource is exposed on instead of using randomly assigned port.
- [withModule](/reference/api/typescript/aspire.hosting.redis/withmodule.md) -- `method` -- Configures the Redis resource to use the specified Redis module by providing its path inside the container.
- [withPassword](/reference/api/typescript/aspire.hosting.redis/withpassword.md) -- `method` -- Configures the password that the Redis resource is used.
- [withPersistence](/reference/api/typescript/aspire.hosting.redis/withpersistence.md) -- `method` -- Configures a Redis container resource for persistence.
- [withRedisCommander](/reference/api/typescript/aspire.hosting.redis/withrediscommander.md) -- `method` -- Adds Redis Commander management UI
- [withRedisInsight](/reference/api/typescript/aspire.hosting.redis/withredisinsight.md) -- `method` -- Adds Redis Insight management UI
- [withRepl](/reference/api/typescript/aspire.hosting.redis/withrepl.md) -- `method` -- Adds a REPL command that opens an authenticated Redis shell in the dashboard terminal dock.
