Share via


Persistence Class

Definition

Persistence-related configuration for the Redis Enterprise database

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20240901Preview.PersistenceTypeConverter))]
public class Persistence : Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20240901Preview.IPersistence
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20240901Preview.PersistenceTypeConverter))>]
type Persistence = class
    interface IPersistence
    interface IJsonSerializable
Public Class Persistence
Implements IPersistence
Inheritance
Persistence
Attributes
Implements

Constructors

Persistence()

Creates an new Persistence instance.

Properties

AofEnabled

Sets whether AOF is enabled. Note that at most one of AOF or RDB persistence may be enabled.

AofFrequency

Sets the frequency at which data is written to disk. Defaults to '1s', meaning 'every second'. Note that the 'always' setting is deprecated, because of its performance impact.

RdbEnabled

Sets whether RDB is enabled. Note that at most one of AOF or RDB persistence may be enabled.

RdbFrequency

Sets the frequency at which a snapshot of the database is created.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Persistence.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Persistence.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.RedisEnterpriseCache.Models.Api20240901Preview.IPersistence.

FromJsonString(String)

Creates a new instance of Persistence, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of Persistence into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to