# Aspire.Hosting.Garnet

- Module: `Aspire.Hosting.Garnet`
- Version: `13.4.0`
- Source: [GitHub](https://github.com/microsoft/aspire)
- Functions: `4`
- Types: `1`

## Types

- [GarnetResource](/reference/api/typescript/aspire.hosting.garnet/garnetresource.md) -- `handle` - 9 members -- A resource that represents a Garnet resource independent of the hosting model.

## Functions

- [addGarnet](/reference/api/typescript/aspire.hosting.garnet/addgarnet.md) -- `method` -- Adds a Garnet container resource to the application model.
- [withDataBindMount](/reference/api/typescript/aspire.hosting.garnet/withdatabindmount.md) -- `method` -- Adds a bind mount for the data folder to a Garnet container resource and enables Garnet persistence.
- [withDataVolume](/reference/api/typescript/aspire.hosting.garnet/withdatavolume.md) -- `method` -- Adds a named volume for the data folder to a Garnet container resource and enables Garnet persistence.
- [withPersistence](/reference/api/typescript/aspire.hosting.garnet/withpersistence.md) -- `method` -- Configures a Garnet container resource for persistence.
