# ClusterLifetime

- Kind: `enum`
- Package: [CommunityToolkit.Aspire.Hosting.Kind](/reference/api/csharp/communitytoolkit.aspire.hosting.kind.md)
- Version: `13.4.1-beta.706`
- Namespace: `Aspire.Hosting`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Kind/ClusterLifetime.cs)

Specifies the lifetime behavior of a Kind cluster relative to the AppHost session.

## Definition

```csharp
namespace Aspire.Hosting;

public enum ClusterLifetime
```

## Enum Members

| Name | Value | Description |
| --- | --- | --- |
| Session | 0 | The cluster is deleted when the AppHost shuts down. This is the default behavior. |
| Persistent | 1 | The cluster survives AppHost restarts and is reused on the next startup. |
