GarnetBuilderExtensions
Class static net10.0
Provides extension methods for adding Garnet resources to the application model.
namespace Aspire.Hosting;
public static class GarnetBuilderExtensions{ // ...} 6 members
Methods6
Section titled MethodsAddGarnet(IDistributedApplicationBuilder, string, int?)extensionIResourceBuilder<GarnetResource> Adds a Garnet container to the application model.
AddGarnet(IDistributedApplicationBuilder, string, int?, IResourceBuilder<ParameterResource>)extensionIResourceBuilder<GarnetResource> Adds a Garnet container to the application model.
WithDataBindMount(IResourceBuilder<GarnetResource>, string, bool)extensionIResourceBuilder<GarnetResource> Adds a bind mount for the data folder to a Garnet container resource and enables Garnet persistence.
WithDataVolume(IResourceBuilder<GarnetResource>, string?, bool)extensionIResourceBuilder<GarnetResource> Adds a named volume for the data folder to a Garnet container resource and enables Garnet persistence.
WithPersistence(IResourceBuilder<GarnetResource>, TimeSpan?, long)extensionobsoleteIResourceBuilder<GarnetResource> Configures a Garnet container resource for persistence.
WithPersistence(IResourceBuilder<GarnetResource>, TimeSpan?)extensionIResourceBuilder<GarnetResource> Configures a Garnet container resource for persistence.