RedisPersistenceSettings Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Persistence-related configuration for the Redis Enterprise database.
public class RedisPersistenceSettings : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.RedisEnterprise.Models.RedisPersistenceSettings>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.RedisEnterprise.Models.RedisPersistenceSettings>
type RedisPersistenceSettings = class
interface IJsonModel<RedisPersistenceSettings>
interface IPersistableModel<RedisPersistenceSettings>
Public Class RedisPersistenceSettings
Implements IJsonModel(Of RedisPersistenceSettings), IPersistableModel(Of RedisPersistenceSettings)
- Inheritance
-
RedisPersistenceSettings
- Implements
Constructors
RedisPersistenceSettings() |
Initializes a new instance of RedisPersistenceSettings. |
Properties
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. |
IsAofEnabled |
Sets whether AOF is enabled. Note that at most one of AOF or RDB persistence may be enabled. |
IsRdbEnabled |
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. |
Explicit Interface Implementations
IJsonModel<RedisPersistenceSettings>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<RedisPersistenceSettings>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<RedisPersistenceSettings>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<RedisPersistenceSettings>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<RedisPersistenceSettings>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |