-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
RedisPersistenceSettings.cs
40 lines (35 loc) · 1.87 KB
/
RedisPersistenceSettings.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
namespace Azure.ResourceManager.RedisEnterprise.Models
{
/// <summary> Persistence-related configuration for the RedisEnterprise database. </summary>
public partial class RedisPersistenceSettings
{
/// <summary> Initializes a new instance of <see cref="RedisPersistenceSettings"/>. </summary>
public RedisPersistenceSettings()
{
}
/// <summary> Initializes a new instance of <see cref="RedisPersistenceSettings"/>. </summary>
/// <param name="isAofEnabled"> Sets whether AOF is enabled. </param>
/// <param name="isRdbEnabled"> Sets whether RDB is enabled. </param>
/// <param name="aofFrequency"> Sets the frequency at which data is written to disk. </param>
/// <param name="rdbFrequency"> Sets the frequency at which a snapshot of the database is created. </param>
internal RedisPersistenceSettings(bool? isAofEnabled, bool? isRdbEnabled, PersistenceSettingAofFrequency? aofFrequency, PersistenceSettingRdbFrequency? rdbFrequency)
{
IsAofEnabled = isAofEnabled;
IsRdbEnabled = isRdbEnabled;
AofFrequency = aofFrequency;
RdbFrequency = rdbFrequency;
}
/// <summary> Sets whether AOF is enabled. </summary>
public bool? IsAofEnabled { get; set; }
/// <summary> Sets whether RDB is enabled. </summary>
public bool? IsRdbEnabled { get; set; }
/// <summary> Sets the frequency at which data is written to disk. </summary>
public PersistenceSettingAofFrequency? AofFrequency { get; set; }
/// <summary> Sets the frequency at which a snapshot of the database is created. </summary>
public PersistenceSettingRdbFrequency? RdbFrequency { get; set; }
}
}