public sealed class PersistenceConfig : IMessage<PersistenceConfig>, IEquatable<PersistenceConfig>, IDeepCloneable<PersistenceConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Memorystore for Redis v1beta1 API class PersistenceConfig.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation details the \u003ccode\u003ePersistenceConfig\u003c/code\u003e class, part of the Google Cloud Memorystore for Redis v1beta1 API, which manages persistence functionality.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePersistenceConfig\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003ePersistenceConfig\u003c/code\u003e include \u003ccode\u003ePersistenceMode\u003c/code\u003e, which controls whether persistence features are enabled, \u003ccode\u003eRdbNextSnapshotTime\u003c/code\u003e, which indicates the next scheduled snapshot time, \u003ccode\u003eRdbSnapshotPeriod\u003c/code\u003e, specifying the interval between RDB snapshots, and \u003ccode\u003eRdbSnapshotStartTime\u003c/code\u003e which is the time that the first snapshot will be taken.\u003c/p\u003e\n"],["\u003cp\u003eThere are different version of the \u003ccode\u003ePersistenceConfig\u003c/code\u003e class, with the latest being \u003ccode\u003e3.0.0-beta05\u003c/code\u003e, and earlier versions \u003ccode\u003e3.0.0-beta04\u003c/code\u003e and \u003ccode\u003e2.0.0-beta09\u003c/code\u003e also being available.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Memorystore for Redis v1beta1 API - Class PersistenceConfig (3.0.0-beta05)\n\nVersion latestkeyboard_arrow_down\n\n- [3.0.0-beta05 (latest)](/dotnet/docs/reference/Google.Cloud.Redis.V1Beta1/latest/Google.Cloud.Redis.V1Beta1.PersistenceConfig)\n- [3.0.0-beta04](/dotnet/docs/reference/Google.Cloud.Redis.V1Beta1/3.0.0-beta04/Google.Cloud.Redis.V1Beta1.PersistenceConfig)\n- [2.0.0-beta09](/dotnet/docs/reference/Google.Cloud.Redis.V1Beta1/2.0.0-beta09/Google.Cloud.Redis.V1Beta1.PersistenceConfig) \n\n public sealed class PersistenceConfig : IMessage\u003cPersistenceConfig\u003e, IEquatable\u003cPersistenceConfig\u003e, IDeepCloneable\u003cPersistenceConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Memorystore for Redis v1beta1 API class PersistenceConfig.\n\nConfiguration of the persistence functionality. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e PersistenceConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PersistenceConfig](/dotnet/docs/reference/Google.Cloud.Redis.V1Beta1/latest/Google.Cloud.Redis.V1Beta1.PersistenceConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PersistenceConfig](/dotnet/docs/reference/Google.Cloud.Redis.V1Beta1/latest/Google.Cloud.Redis.V1Beta1.PersistenceConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PersistenceConfig](/dotnet/docs/reference/Google.Cloud.Redis.V1Beta1/latest/Google.Cloud.Redis.V1Beta1.PersistenceConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Redis.V1Beta1](/dotnet/docs/reference/Google.Cloud.Redis.V1Beta1/latest/Google.Cloud.Redis.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.Redis.V1Beta1.dll\n\nConstructors\n------------\n\n### PersistenceConfig()\n\n public PersistenceConfig()\n\n### PersistenceConfig(PersistenceConfig)\n\n public PersistenceConfig(PersistenceConfig other)\n\nProperties\n----------\n\n### PersistenceMode\n\n public PersistenceConfig.Types.PersistenceMode PersistenceMode { get; set; }\n\nOptional. Controls whether Persistence features are enabled.\nIf not provided, the existing value will be used.\n\n### RdbNextSnapshotTime\n\n public Timestamp RdbNextSnapshotTime { get; set; }\n\nOutput only. The next time that a snapshot attempt is scheduled to occur.\n\n### RdbSnapshotPeriod\n\n public PersistenceConfig.Types.SnapshotPeriod RdbSnapshotPeriod { get; set; }\n\nOptional. Period between RDB snapshots. Snapshots will be attempted every period\nstarting from the provided snapshot start time. For example, a start time\nof 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing until\n01/01/2033, and then trigger snapshots every day at 06:45, 12:45, 18:45,\nand 00:45 the next day, and so on.\nIf not provided, TWENTY_FOUR_HOURS will be used as default.\n\n### RdbSnapshotStartTime\n\n public Timestamp RdbSnapshotStartTime { get; set; }\n\nOptional. Date and time that the first snapshot was/will be attempted, and to which\nfuture snapshots will be aligned.\nIf not provided, the current time will be used."]]