3.6.0 (latest) 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.5.0 2.4.0 2.3.0 2.2.0

    public sealed class PersistenceConfig : IMessage<PersistenceConfig>, IEquatable<PersistenceConfig>, IDeepCloneable<PersistenceConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Memorystore for Redis v1 API class PersistenceConfig.

Configuration of the persistence functionality.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> PersistenceConfig

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[PersistenceConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Redis.V1/latest/Google.Cloud.Redis.V1.PersistenceConfig.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PersistenceConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Redis.V1/latest/Google.Cloud.Redis.V1.PersistenceConfig.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[PersistenceConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Redis.V1/latest/Google.Cloud.Redis.V1.PersistenceConfig.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Redis.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Redis.V1/latest/Google.Cloud.Redis.V1.md.txt)

## Assembly

Google.Cloud.Redis.V1.dll

## Constructors

### PersistenceConfig()

    public PersistenceConfig()

### PersistenceConfig(PersistenceConfig)

    public PersistenceConfig(PersistenceConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `PersistenceConfig` |

## Properties

### PersistenceMode

    public PersistenceConfig.Types.PersistenceMode PersistenceMode { get; set; }

Optional. Controls whether Persistence features are enabled.
If not provided, the existing value will be used.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `PersistenceConfigTypesPersistenceMode` |   |

### RdbNextSnapshotTime

    public Timestamp RdbNextSnapshotTime { get; set; }

Output only. The next time that a snapshot attempt is scheduled to occur.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### RdbSnapshotPeriod

    public PersistenceConfig.Types.SnapshotPeriod RdbSnapshotPeriod { get; set; }

Optional. Period between RDB snapshots. Snapshots will be attempted every
period starting from the provided snapshot start time. For example, a start
time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing
until 01/01/2033, and then trigger snapshots every day at 06:45, 12:45,
18:45, and 00:45 the next day, and so on. If not provided,
TWENTY_FOUR_HOURS will be used as default.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `PersistenceConfigTypesSnapshotPeriod` |   |

### RdbSnapshotStartTime

    public Timestamp RdbSnapshotStartTime { get; set; }

Optional. Date and time that the first snapshot was/will be attempted, and
to which future snapshots will be aligned. If not provided, the current
time will be used.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |