Interface RedisCache
-
- All Superinterfaces:
GroupableResource<RedisManager,RedisResourceInner>,HasId,HasInnerModel<RedisResourceInner>,HasManager<RedisManager>,HasName,HasResourceGroup,Indexable,Refreshable<RedisCache>,Resource,SupportsListingPrivateEndpointConnection,SupportsListingPrivateLinkResource,SupportsUpdatingPrivateEndpointConnection,Updatable<RedisCache.Update>
- All Known Subinterfaces:
RedisCachePremium
public interface RedisCache extends GroupableResource<RedisManager,RedisResourceInner>, Refreshable<RedisCache>, Updatable<RedisCache.Update>, SupportsListingPrivateLinkResource, SupportsListingPrivateEndpointConnection, SupportsUpdatingPrivateEndpointConnection
An immutable client-side representation of an Azure Redis Cache.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceRedisCache.DefinitionContainer interface for all the definitions that need to be implemented.static interfaceRedisCache.DefinitionStagesGrouping of all the Redis Cache definition stages.static classRedisCache.RedisVersionmajor version of redis for version 4.x.x, use V4 for version 6.x.x, use V6static interfaceRedisCache.UpdateThe template for a Redis Cache update operation, containing all the settings that can be modified.static interfaceRedisCache.UpdateStagesGrouping of all the Redis Cache update stages.-
Nested classes/interfaces inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.Resource
Resource.DefinitionWithRegion<T extends Object>, Resource.DefinitionWithTags<T extends Object>, Resource.UpdateWithTags<T extends Object>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RedisCachePremiumasPremium()Map<String,RedisFirewallRule>firewallRules()voidforceReboot(RebootType rebootType)Reboot specified Redis node(s).Stringhostname()booleanisPremium()RedisAccessKeyskeys()TlsVersionminimumTlsVersion()booleannonSslPort()List<ScheduleEntry>patchSchedules()intport()StringprovisioningState()Map<String,String>redisConfiguration()StringredisVersion()RedisAccessKeysrefreshKeys()Fetch the up-to-date access keys from Azure for this Redis Cache.RedisAccessKeysregenerateKey(RedisKeyType keyType)Regenerates the access keys for this Redis Cache.intshardCount()Skusku()intsslPort()StringstaticIp()StringsubnetId()-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel
innerModel
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager
manager
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasName
name
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasResourceGroup
resourceGroupName
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.Refreshable
refresh, refreshAsync
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.Resource
region, regionName, tags, type
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsListingPrivateEndpointConnection
listPrivateEndpointConnections, listPrivateEndpointConnectionsAsync
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsListingPrivateLinkResource
listPrivateLinkResources, listPrivateLinkResourcesAsync
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsUpdatingPrivateEndpointConnection
approvePrivateEndpointConnection, approvePrivateEndpointConnectionAsync, rejectPrivateEndpointConnection, rejectPrivateEndpointConnectionAsync
-
-
-
-
Method Detail
-
asPremium
RedisCachePremium asPremium()
- Returns:
- exposes features available only to Premium Sku Redis Cache instances.
-
isPremium
boolean isPremium()
- Returns:
- returns true if current Redis Cache instance has Premium Sku.
-
provisioningState
String provisioningState()
- Returns:
- the provisioningState value
-
hostname
String hostname()
- Returns:
- the hostname value
-
port
int port()
- Returns:
- the port value
-
sslPort
int sslPort()
- Returns:
- the sslPort value
-
redisVersion
String redisVersion()
- Returns:
- the Redis version value
-
sku
Sku sku()
- Returns:
- the sku value
-
nonSslPort
boolean nonSslPort()
- Returns:
- true if non SSL port is enabled, false otherwise
-
shardCount
int shardCount()
- Returns:
- the shardCount value
-
subnetId
String subnetId()
- Returns:
- the subnetId value
-
staticIp
String staticIp()
- Returns:
- the staticIP value
-
minimumTlsVersion
TlsVersion minimumTlsVersion()
- Returns:
- the minimum TLS version (or higher) that clients require to use.
-
firewallRules
Map<String,RedisFirewallRule> firewallRules()
- Returns:
- Firewall Rules in the Redis Cache, indexed by name
-
patchSchedules
List<ScheduleEntry> patchSchedules()
- Returns:
- List of patch schedules for current Redis Cache.
-
forceReboot
void forceReboot(RebootType rebootType)
Reboot specified Redis node(s). This operation requires write permission to the cache resource. There can be potential data loss.- Parameters:
rebootType- specifies which Redis node(s) to reboot. Depending on this value data loss is possible. Possible values include: 'PrimaryNode', 'SecondaryNode', 'AllNodes'.
-
keys
RedisAccessKeys keys()
- Returns:
- a Redis Cache's access keys. This operation requires write permission to the Cache resource.
-
refreshKeys
RedisAccessKeys refreshKeys()
Fetch the up-to-date access keys from Azure for this Redis Cache.- Returns:
- the access keys for this Redis Cache
-
regenerateKey
RedisAccessKeys regenerateKey(RedisKeyType keyType)
Regenerates the access keys for this Redis Cache.- Parameters:
keyType- key type to regenerate- Returns:
- the generated access keys for this Redis Cache
-
-