RedisCache Interface

Implements

public interface RedisCache
extends GroupableResource<RedisManager,RedisResourceInner>, Refreshable<RedisCache>, Updatable<Update>, SupportsListingPrivateLinkResource, SupportsListingPrivateEndpointConnection, SupportsUpdatingPrivateEndpointConnection

An immutable client-side representation of an Azure Redis Cache.

Method Summary

Modifier and Type Method and Description
abstract RedisCachePremium asPremium()
abstract Map<String,RedisFirewallRule> firewallRules()
abstract void forceReboot(RebootType rebootType)

Reboot specified Redis node(s).

abstract String hostname()
abstract boolean isPremium()
abstract RedisAccessKeys keys()
abstract TlsVersion minimumTlsVersion()
abstract boolean nonSslPort()
abstract List<ScheduleEntry> patchSchedules()
abstract int port()
abstract String provisioningState()
abstract PublicNetworkAccess publicNetworkAccess()

Whether the redis cache can be accessed from public network.

abstract Map<String,String> redisConfiguration()
abstract String redisVersion()
abstract RedisAccessKeys refreshKeys()

Fetch the up-to-date access keys from Azure for this Redis Cache.

abstract RedisAccessKeys regenerateKey(RedisKeyType keyType)

Regenerates the access keys for this Redis Cache.

abstract int shardCount()
abstract Sku sku()
abstract int sslPort()
abstract String staticIp()
abstract String subnetId()

Method Details

asPremium

public abstract RedisCachePremium asPremium()

Returns:

exposes features available only to Premium Sku Redis Cache instances.

firewallRules

public abstract Map firewallRules()

Returns:

Firewall Rules in the Redis Cache, indexed by name

forceReboot

public abstract 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'.

hostname

public abstract String hostname()

Returns:

the hostname value

isPremium

public abstract boolean isPremium()

Returns:

returns true if current Redis Cache instance has Premium Sku.

keys

public abstract RedisAccessKeys keys()

Returns:

a Redis Cache's access keys. This operation requires write permission to the Cache resource.

minimumTlsVersion

public abstract TlsVersion minimumTlsVersion()

Returns:

the minimum TLS version (or higher) that clients require to use.

nonSslPort

public abstract boolean nonSslPort()

Returns:

true if non SSL port is enabled, false otherwise

patchSchedules

public abstract List patchSchedules()

Returns:

List of patch schedules for current Redis Cache.

port

public abstract int port()

Returns:

the port value

provisioningState

public abstract String provisioningState()

Returns:

the provisioningState value

publicNetworkAccess

public abstract PublicNetworkAccess publicNetworkAccess()

Whether the redis cache can be accessed from public network.

Returns:

whether the redis cache can be accessed from public network.

redisConfiguration

public abstract Map redisConfiguration()

Returns:

the Redis configuration value

redisVersion

public abstract String redisVersion()

Returns:

the Redis version value

refreshKeys

public abstract RedisAccessKeys refreshKeys()

Fetch the up-to-date access keys from Azure for this Redis Cache.

Returns:

the access keys for this Redis Cache

regenerateKey

public abstract 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

shardCount

public abstract int shardCount()

Returns:

the shardCount value

sku

public abstract Sku sku()

Returns:

the sku value

sslPort

public abstract int sslPort()

Returns:

the sslPort value

staticIp

public abstract String staticIp()

Returns:

the staticIP value

subnetId

public abstract String subnetId()

Returns:

the subnetId value

Applies to