RedisCache.DefinitionStages.WithCreate Interface

Implements

public static interface RedisCache.DefinitionStages.WithCreate
extends Creatable<RedisCache>, DefinitionWithTags<WithCreate>

A Redis Cache definition with sufficient inputs to create a new Redis Cache in the cloud, but exposing additional optional inputs to specify.

Method Summary

Modifier and Type Method and Description
abstract WithCreate disablePublicNetworkAccess()

Disables public network access for the redis cache.

abstract WithCreate withFirewallRule(RedisFirewallRule rule)

Creates Redis cache firewall rule with range of IP addresses permitted to connect to the cache.

abstract WithCreate withFirewallRule(String name, String lowestIp, String highestIp)

Creates Redis cache firewall rule with range of IP addresses permitted to connect to the cache.

abstract WithCreate withMinimumTlsVersion(TlsVersion tlsVersion)

Requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2').

abstract WithCreate withNonSslPort()

Enables non-ssl Redis server port (6379).

abstract WithCreate withPatchSchedule(DayOfWeek dayOfWeek, int startHourUtc)

Patch schedule on a Premium Cluster Cache.

abstract WithCreate withPatchSchedule(DayOfWeek dayOfWeek, int startHourUtc, Duration maintenanceWindow)

Patch schedule on a Premium Cluster Cache.

abstract WithCreate withPatchSchedule(ScheduleEntry scheduleEntry)

Patch schedule on a Premium Cluster Cache.

abstract WithCreate withPatchSchedule(List<ScheduleEntry> scheduleEntry)

Patch schedule on a Premium Cluster Cache.

abstract WithCreate withRedisConfiguration(RedisConfiguration redisConfiguration)

Specifies Redis Setting.

abstract WithCreate withRedisConfiguration(String key, String value)

Specifies Redis Setting.

abstract WithCreate withRedisConfiguration(Map<String,String> redisConfiguration)

All Redis Settings.

abstract WithCreate withRedisVersion(RedisCache.RedisVersion redisVersion)

Explicitly specify the Redis version to create with

Method Details

disablePublicNetworkAccess

public abstract RedisCache.DefinitionStages.WithCreate disablePublicNetworkAccess()

Disables public network access for the redis cache.

Returns:

the next stage of the definition

withFirewallRule

public abstract RedisCache.DefinitionStages.WithCreate withFirewallRule(RedisFirewallRule rule)

Creates Redis cache firewall rule with range of IP addresses permitted to connect to the cache.

Parameters:

rule - firewall rule that specifies name, lowest and highest IP address included in the range of permitted IP addresses.

Returns:

the next stage of Redis Cache definition.

withFirewallRule

public abstract RedisCache.DefinitionStages.WithCreate withFirewallRule(String name, String lowestIp, String highestIp)

Creates Redis cache firewall rule with range of IP addresses permitted to connect to the cache.

Parameters:

name - name of the rule.
lowestIp - lowest IP address included in the range.
highestIp - highest IP address included in the range.

Returns:

the next stage of Redis Cache definition.

withMinimumTlsVersion

public abstract RedisCache.DefinitionStages.WithCreate withMinimumTlsVersion(TlsVersion tlsVersion)

Requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2').

Parameters:

tlsVersion - minimum TLS version.

Returns:

the next stage of Redis Cache definition.

withNonSslPort

public abstract RedisCache.DefinitionStages.WithCreate withNonSslPort()

Enables non-ssl Redis server port (6379).

Returns:

the next stage of Redis Cache definition.

withPatchSchedule

public abstract RedisCache.DefinitionStages.WithCreate withPatchSchedule(DayOfWeek dayOfWeek, int startHourUtc)

Patch schedule on a Premium Cluster Cache.

Parameters:

dayOfWeek - day of week when cache can be patched.
startHourUtc - start hour after which cache patching can start.

Returns:

the next stage of Redis Cache with Premium SKU definition.

withPatchSchedule

public abstract RedisCache.DefinitionStages.WithCreate withPatchSchedule(DayOfWeek dayOfWeek, int startHourUtc, Duration maintenanceWindow)

Patch schedule on a Premium Cluster Cache.

Parameters:

dayOfWeek - day of week when cache can be patched.
startHourUtc - start hour after which cache patching can start.
maintenanceWindow - ISO8601 timespan specifying how much time cache patching can take.

Returns:

the next stage of Redis Cache with Premium SKU definition.

withPatchSchedule

public abstract RedisCache.DefinitionStages.WithCreate withPatchSchedule(ScheduleEntry scheduleEntry)

Patch schedule on a Premium Cluster Cache.

Parameters:

scheduleEntry - Patch schedule entry for Premium Redis Cache.

Returns:

the next stage of Redis Cache with Premium SKU definition.

withPatchSchedule

public abstract RedisCache.DefinitionStages.WithCreate withPatchSchedule(List scheduleEntry)

Patch schedule on a Premium Cluster Cache.

Parameters:

scheduleEntry - List of patch schedule entries for Premium Redis Cache.

Returns:

the next stage of Redis Cache with Premium SKU definition.

withRedisConfiguration

public abstract RedisCache.DefinitionStages.WithCreate withRedisConfiguration(RedisConfiguration redisConfiguration)

Specifies Redis Setting.

Parameters:

redisConfiguration - the Redis configuration.

Returns:

the next stage of Redis Cache definition.

withRedisConfiguration

public abstract RedisCache.DefinitionStages.WithCreate withRedisConfiguration(String key, String value)

Specifies Redis Setting. 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:

key - Redis configuration name.
value - Redis configuration value.

Returns:

the next stage of Redis Cache definition.

withRedisConfiguration

public abstract RedisCache.DefinitionStages.WithCreate withRedisConfiguration(Map redisConfiguration)

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:

redisConfiguration - configuration of Redis Cache as a map indexed by configuration name

Returns:

the next stage of Redis Cache definition.

withRedisVersion

public abstract RedisCache.DefinitionStages.WithCreate withRedisVersion(RedisCache.RedisVersion redisVersion)

Explicitly specify the Redis version to create with

Parameters:

redisVersion - the redisVersion value to set.

Returns:

the next stage of Redis Cache with Premium SKU definition.

Applies to