RedisCommonConfiguration Class

Definition

All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta, maxmemory-policy,notify-keyspace-events, aof-backup-enabled, aof-storage-connection-string-0, aof-storage-connection-string-1 etc.

public class RedisCommonConfiguration : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Redis.Models.RedisCommonConfiguration>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Redis.Models.RedisCommonConfiguration>
public class RedisCommonConfiguration
type RedisCommonConfiguration = class
    interface IJsonModel<RedisCommonConfiguration>
    interface IPersistableModel<RedisCommonConfiguration>
type RedisCommonConfiguration = class
Public Class RedisCommonConfiguration
Implements IJsonModel(Of RedisCommonConfiguration), IPersistableModel(Of RedisCommonConfiguration)
Public Class RedisCommonConfiguration
Inheritance
RedisCommonConfiguration
Implements

Constructors

RedisCommonConfiguration()

Initializes a new instance of RedisCommonConfiguration.

Properties

AdditionalProperties

Additional Properties

To assign an object to the value of this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"): Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""): Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }): Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"): Creates a payload of { "key": "value" }.

AofStorageConnectionString0

First storage account connection string.

AofStorageConnectionString1

Second storage account connection string.

AuthNotRequired

Specifies whether the authentication is disabled. Setting this property is highly discouraged from security point of view.

IsAadEnabled

Specifies whether AAD based authentication has been enabled or disabled for the cache.

IsAofBackupEnabled

Specifies whether the aof backup is enabled.

IsRdbBackupEnabled

Specifies whether the rdb backup is enabled.

MaxClients

The max clients config.

MaxFragmentationMemoryReserved

Value in megabytes reserved for fragmentation per shard.

MaxMemoryDelta

Value in megabytes reserved for non-cache usage per shard e.g. failover.

MaxMemoryPolicy

The eviction strategy used when your data won't fit within its memory limit.

MaxMemoryReserved

Value in megabytes reserved for non-cache usage per shard e.g. failover.

NotifyKeyspaceEvents

The keyspace events which should be monitored.

PreferredDataArchiveAuthMethod

Preferred auth method to communicate to storage account used for data archive, specify SAS or ManagedIdentity, default value is SAS.

PreferredDataPersistenceAuthMethod

Preferred auth method to communicate to storage account used for data persistence, specify SAS or ManagedIdentity, default value is SAS.

RdbBackupFrequency

Specifies the frequency for creating rdb backup in minutes. Valid values: (15, 30, 60, 360, 720, 1440).

RdbBackupMaxSnapshotCount

Specifies the maximum number of snapshots for rdb backup.

RdbStorageConnectionString

The storage account connection string for storing rdb file.

StorageSubscriptionId

SubscriptionId of the storage account for persistence (aof/rdb) using ManagedIdentity.

ZonalConfiguration

Zonal Configuration.

Explicit Interface Implementations

IJsonModel<RedisCommonConfiguration>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<RedisCommonConfiguration>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<RedisCommonConfiguration>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<RedisCommonConfiguration>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<RedisCommonConfiguration>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to