CacheRedisConfiguration

data class CacheRedisConfiguration(val activeDirectoryAuthenticationEnabled: Boolean? = null, val aofBackupEnabled: Boolean? = null, val aofStorageConnectionString0: String? = null, val aofStorageConnectionString1: String? = null, val authenticationEnabled: Boolean? = null, val dataPersistenceAuthenticationMethod: String? = null, val maxclients: Int? = null, val maxfragmentationmemoryReserved: Int? = null, val maxmemoryDelta: Int? = null, val maxmemoryPolicy: String? = null, val maxmemoryReserved: Int? = null, val notifyKeyspaceEvents: String? = null, val rdbBackupEnabled: Boolean? = null, val rdbBackupFrequency: Int? = null, val rdbBackupMaxSnapshotCount: Int? = null, val rdbStorageConnectionString: String? = null, val storageAccountSubscriptionId: String? = null)

Constructors

Link copied to clipboard
constructor(activeDirectoryAuthenticationEnabled: Boolean? = null, aofBackupEnabled: Boolean? = null, aofStorageConnectionString0: String? = null, aofStorageConnectionString1: String? = null, authenticationEnabled: Boolean? = null, dataPersistenceAuthenticationMethod: String? = null, maxclients: Int? = null, maxfragmentationmemoryReserved: Int? = null, maxmemoryDelta: Int? = null, maxmemoryPolicy: String? = null, maxmemoryReserved: Int? = null, notifyKeyspaceEvents: String? = null, rdbBackupEnabled: Boolean? = null, rdbBackupFrequency: Int? = null, rdbBackupMaxSnapshotCount: Int? = null, rdbStorageConnectionString: String? = null, storageAccountSubscriptionId: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Enable Microsoft Entra (AAD) authentication. Defaults to false.

Link copied to clipboard

Enable or disable AOF persistence for this Redis Cache. Defaults to false.

Link copied to clipboard

First Storage Account connection string for AOF persistence.

Link copied to clipboard

Second Storage Account connection string for AOF persistence. Example usage:

Link copied to clipboard

If set to false, the Redis instance will be accessible without authentication. Defaults to true.

Link copied to clipboard

Preferred auth method to communicate to storage account used for data persistence. Possible values are SAS and ManagedIdentity.

Link copied to clipboard
val maxclients: Int? = null

Returns the max number of connected clients at the same time.

Link copied to clipboard

Value in megabytes reserved to accommodate for memory fragmentation. Defaults are shown below.

Link copied to clipboard
val maxmemoryDelta: Int? = null

The max-memory delta for this Redis instance. Defaults are shown below.

Link copied to clipboard
val maxmemoryPolicy: String? = null

How Redis will select what to remove when maxmemory is reached. Defaults to volatile-lru.

Link copied to clipboard
val maxmemoryReserved: Int? = null

Value in megabytes reserved for non-cache usage e.g. failover. Defaults are shown below.

Link copied to clipboard

Keyspace notifications allows clients to subscribe to Pub/Sub channels in order to receive events affecting the Redis data set in some way. Reference

Link copied to clipboard

Is Backup Enabled? Only supported on Premium SKUs. Defaults to false.

Link copied to clipboard
val rdbBackupFrequency: Int? = null

The Backup Frequency in Minutes. Only supported on Premium SKUs. Possible values are: 15, 30, 60, 360, 720 and 1440.

Link copied to clipboard

The maximum number of snapshots to create as a backup. Only supported for Premium SKUs.

Link copied to clipboard

The Connection String to the Storage Account. Only supported for Premium SKUs. In the format: DefaultEndpointsProtocol=https;BlobEndpoint=${azurerm_storage_account.example.primary_blob_endpoint};AccountName=${azurerm_storage_account.example.name};AccountKey=${azurerm_storage_account.example.primary_access_key}.

Link copied to clipboard

The ID of the Subscription containing the Storage Account.