RedisCache.UpdateStages.WithRedisConfiguration Interface

public static interface RedisCache.UpdateStages.WithRedisConfiguration

A Redis Cache update allowing Redis configuration to be modified.

Method Summary

Modifier and Type Method and Description
abstract Update withRedisConfiguration(String key, String value)

Specifies Redis Setting.

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

All Redis Settings.

abstract Update withoutRedisConfiguration()

Cleans all the configuration settings being set on Redis Cache.

abstract Update withoutRedisConfiguration(String key)

Removes specified Redis Cache configuration setting.

Method Details

withRedisConfiguration

public abstract RedisCache.Update 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 update.

withRedisConfiguration

public abstract RedisCache.Update 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 update.

withoutRedisConfiguration

public abstract RedisCache.Update withoutRedisConfiguration()

Cleans all the configuration settings being set on Redis Cache.

Returns:

the next stage of Redis Cache update.

withoutRedisConfiguration

public abstract RedisCache.Update withoutRedisConfiguration(String key)

Removes specified Redis Cache configuration setting.

Parameters:

key - Redis configuration name.

Returns:

the next stage of Redis Cache update.

Applies to