RedisCommonProperties Class
- java.
lang. Object - com.
azure. resourcemanager. redis. models. RedisCommonProperties
- com.
public class RedisCommonProperties
Create/Update/Get common properties of the redis cache.
Constructor Summary
Constructor | Description |
---|---|
RedisCommonProperties() |
Creates an instance of Redis |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
enableNonSslPort()
Get the enable |
Tls |
minimumTlsVersion()
Get the minimum |
Public |
publicNetworkAccess()
Get the public |
Redis |
redisConfiguration()
Get the redis |
String |
redisVersion()
Get the redis |
Integer |
replicasPerMaster()
Get the replicas |
Integer |
replicasPerPrimary()
Get the replicas |
Integer |
shardCount()
Get the shard |
Map<String,String> |
tenantSettings()
Get the tenant |
Update |
updateChannel()
Get the update |
void |
validate()
Validates the instance. |
Redis |
withEnableNonSslPort(Boolean enableNonSslPort)
Set the enable |
Redis |
withMinimumTlsVersion(TlsVersion minimumTlsVersion)
Set the minimum |
Redis |
withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)
Set the public |
Redis |
withRedisConfiguration(RedisConfiguration redisConfiguration)
Set the redis |
Redis |
withRedisVersion(String redisVersion)
Set the redis |
Redis |
withReplicasPerMaster(Integer replicasPerMaster)
Set the replicas |
Redis |
withReplicasPerPrimary(Integer replicasPerPrimary)
Set the replicas |
Redis |
withShardCount(Integer shardCount)
Set the shard |
Redis |
withTenantSettings(Map<String,String> tenantSettings)
Set the tenant |
Redis |
withUpdateChannel(UpdateChannel updateChannel)
Set the update |
Methods inherited from java.lang.Object
Constructor Details
RedisCommonProperties
public RedisCommonProperties()
Creates an instance of RedisCommonProperties class.
Method Details
enableNonSslPort
public Boolean enableNonSslPort()
Get the enableNonSslPort property: Specifies whether the non-ssl Redis server port (6379) is enabled.
Returns:
minimumTlsVersion
public TlsVersion minimumTlsVersion()
Get the minimumTlsVersion property: Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2').
Returns:
publicNetworkAccess
public PublicNetworkAccess publicNetworkAccess()
Get the publicNetworkAccess property: Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'.
Returns:
redisConfiguration
public RedisConfiguration redisConfiguration()
Get the redisConfiguration property: All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc.
Returns:
redisVersion
public String redisVersion()
Get the redisVersion property: Redis version. This should be in the form 'major[.minor]' (only 'major' is required) or the value 'latest' which refers to the latest stable Redis version that is available. Supported versions: 4.0, 6.0 (latest). Default value is 'latest'.
Returns:
replicasPerMaster
public Integer replicasPerMaster()
Get the replicasPerMaster property: The number of replicas to be created per primary.
Returns:
replicasPerPrimary
public Integer replicasPerPrimary()
Get the replicasPerPrimary property: The number of replicas to be created per primary.
Returns:
shardCount
public Integer shardCount()
Get the shardCount property: The number of shards to be created on a Premium Cluster Cache.
Returns:
tenantSettings
public Map
Get the tenantSettings property: A dictionary of tenant settings.
Returns:
updateChannel
public UpdateChannel updateChannel()
Get the updateChannel property: Optional: Specifies the update channel for the monthly Redis updates your Redis Cache will receive. Caches using 'Preview' update channel get latest Redis updates at least 4 weeks ahead of 'Stable' channel caches. Default value is 'Stable'.
Returns:
validate
public void validate()
Validates the instance.
withEnableNonSslPort
public RedisCommonProperties withEnableNonSslPort(Boolean enableNonSslPort)
Set the enableNonSslPort property: Specifies whether the non-ssl Redis server port (6379) is enabled.
Parameters:
Returns:
withMinimumTlsVersion
public RedisCommonProperties withMinimumTlsVersion(TlsVersion minimumTlsVersion)
Set the minimumTlsVersion property: Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2').
Parameters:
Returns:
withPublicNetworkAccess
public RedisCommonProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)
Set the publicNetworkAccess property: Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'.
Parameters:
Returns:
withRedisConfiguration
public RedisCommonProperties withRedisConfiguration(RedisConfiguration redisConfiguration)
Set the redisConfiguration property: All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc.
Parameters:
Returns:
withRedisVersion
public RedisCommonProperties withRedisVersion(String redisVersion)
Set the redisVersion property: Redis version. This should be in the form 'major[.minor]' (only 'major' is required) or the value 'latest' which refers to the latest stable Redis version that is available. Supported versions: 4.0, 6.0 (latest). Default value is 'latest'.
Parameters:
Returns:
withReplicasPerMaster
public RedisCommonProperties withReplicasPerMaster(Integer replicasPerMaster)
Set the replicasPerMaster property: The number of replicas to be created per primary.
Parameters:
Returns:
withReplicasPerPrimary
public RedisCommonProperties withReplicasPerPrimary(Integer replicasPerPrimary)
Set the replicasPerPrimary property: The number of replicas to be created per primary.
Parameters:
Returns:
withShardCount
public RedisCommonProperties withShardCount(Integer shardCount)
Set the shardCount property: The number of shards to be created on a Premium Cluster Cache.
Parameters:
Returns:
withTenantSettings
public RedisCommonProperties withTenantSettings(Map
Set the tenantSettings property: A dictionary of tenant settings.
Parameters:
Returns:
withUpdateChannel
public RedisCommonProperties withUpdateChannel(UpdateChannel updateChannel)
Set the updateChannel property: Optional: Specifies the update channel for the monthly Redis updates your Redis Cache will receive. Caches using 'Preview' update channel get latest Redis updates at least 4 weeks ahead of 'Stable' channel caches. Default value is 'Stable'.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for