# Aspire.Hosting.Valkey

- Module: `Aspire.Hosting.Valkey`
- Version: `17.0.0`
- Import path: `apphost/modules/aspire`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)
- Functions: `5`
- Types: `1`

## Handles

- [ValkeyResource](/reference/api/go/aspire.hosting.valkey/valkeyresource.md) -- `handle` - 11 members -- A resource that represents a Valkey resource independent of the hosting model.

## Functions

- [AddValkey](/reference/api/go/aspire.hosting.valkey/addvalkey.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a Valkey container to the application model.
- [WithDataBindMount](/reference/api/go/aspire.hosting.valkey/withdatabindmount.md) -- `method` - on `ValkeyResource` -- Adds a bind mount for the data folder to a Valkey container resource and enables Valkey persistence.
- [WithDataVolume](/reference/api/go/aspire.hosting.valkey/withdatavolume.md) -- `method` - on `ValkeyResource` -- Adds a named volume for the data folder to a Valkey container resource and enables Valkey persistence.
- [WithPersistence](/reference/api/go/aspire.hosting.valkey/withpersistence.md) -- `method` - on `ValkeyResource` -- Configures a Valkey container resource for persistence.
- [WithRepl](/reference/api/go/aspire.hosting.valkey/withrepl.md) -- `method` - on `ValkeyResource` -- Adds a REPL command that opens an authenticated Valkey shell in the dashboard terminal dock.
