Class PersistenceConfig (3.0.0-beta01)

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

Configuration of the persistence functionality.

Inheritance

Object > PersistenceConfig

Namespace

Google.Cloud.Redis.V1Beta1

Assembly

Google.Cloud.Redis.V1Beta1.dll

Constructors

PersistenceConfig()

public PersistenceConfig()

PersistenceConfig(PersistenceConfig)

public PersistenceConfig(PersistenceConfig other)
Parameter
NameDescription
otherPersistenceConfig

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
TypeDescription
PersistenceConfig.Types.PersistenceMode

RdbNextSnapshotTime

public Timestamp RdbNextSnapshotTime { get; set; }

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

Property Value
TypeDescription
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
TypeDescription
PersistenceConfig.Types.SnapshotPeriod

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
TypeDescription
Timestamp