你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IPersistence Interface

Definition

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

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

ToJson(JsonObject, SerializationMode) (Inherited from IJsonSerializable)

Applies to