GarnetResource.withPersistence

Method
📦 Aspire.Hosting.Garnet v17.0.0
interface GarnetResource {
// ... omitted for brevity
withPersistence(interval?: timespan): GarnetResource;
}

Signature

methodwithPersistencebuilder
Configures a Garnet container resource for persistence.
withPersistence(interval?: timespan): GarnetResource
intervaltimespanoptionalThe interval between snapshot exports. Defaults to 60 seconds.
GarnetResource

Defined on

This method is defined on the following type: