Uses of Interface
org.springframework.data.redis.connection.RedisConfiguration
Package
Description
Connection package providing low-level abstractions for interacting with the various Redis 'drivers'/libraries.
Connection package for Lettuce Redis client.
-
Uses of RedisConfiguration in org.springframework.data.redis.connection
Modifier and TypeClassDescriptionclass
Configuration class used to set up aRedisConnection
viaRedisConnectionFactory
for connecting to Redis Cluster.class
Configuration
class used to set up aRedisConnection
withRedisConnectionFactory
for connecting to Redis Sentinel(s).class
Configuration class used for setting upRedisConnection
viaRedisConnectionFactory
connecting to single Redis using a local unix domain socket.class
Configuration class used to set up aRedisConnection
withRedisConnectionFactory
for connecting to a single node Redis instance.class
Configuration class used for setting upRedisConnection
viaRedisConnectionFactory
using the provided Master / Replica configuration to nodes know to not change address.Modifier and TypeMethodDescriptionstatic Integer
RedisConfiguration.getDatabaseOrElse
(RedisConfiguration configuration, Supplier<Integer> other) static String
RedisConfiguration.getHostOrElse
(RedisConfiguration configuration, Supplier<String> other) static RedisPassword
RedisConfiguration.getPasswordOrElse
(RedisConfiguration configuration, Supplier<RedisPassword> other) static int
RedisConfiguration.getPortOrElse
(RedisConfiguration configuration, IntSupplier other) static String
RedisConfiguration.getUsernameOrElse
(RedisConfiguration configuration, Supplier<String> other) static boolean
RedisConfiguration.isAuthenticationAware
(RedisConfiguration configuration) static boolean
RedisConfiguration.isClusterConfiguration
(RedisConfiguration configuration) static boolean
RedisConfiguration.isDatabaseIndexAware
(RedisConfiguration configuration) static boolean
RedisConfiguration.isDomainSocketConfiguration
(RedisConfiguration configuration) static boolean
RedisConfiguration.isHostAndPortAware
(RedisConfiguration configuration) static boolean
RedisConfiguration.isSentinelConfiguration
(RedisConfiguration configuration) static boolean
RedisConfiguration.isStaticMasterReplicaConfiguration
(RedisConfiguration configuration) -
Uses of RedisConfiguration in org.springframework.data.redis.connection.lettuce
Modifier and TypeMethodDescriptionstatic RedisConfiguration
LettuceConnectionFactory.createRedisConfiguration
(io.lettuce.core.RedisURI redisUri) Creates aRedisConfiguration
based on aRedisURI
according to the following: IfRedisURI
contains sentinels, aRedisSentinelConfiguration
is returned IfRedisURI
has a configured socket aRedisSocketConfiguration
is returned Otherwise aRedisStandaloneConfiguration
is returnedstatic RedisConfiguration
LettuceConnectionFactory.createRedisConfiguration
(String redisUri) Creates aRedisConfiguration
based on aURI
according to the following: IfredisUri
contains sentinels, aRedisSentinelConfiguration
is returned IfredisUri
has a configured socket aRedisSocketConfiguration
is returned Otherwise aRedisStandaloneConfiguration
is returnedModifier and TypeMethodDescriptiondefault io.lettuce.core.RedisCredentialsProvider
RedisCredentialsProviderFactory.createCredentialsProvider
(RedisConfiguration redisConfiguration) Create aRedisCredentialsProvider
for data node authentication givenRedisConfiguration
.ModifierConstructorDescriptionLettuceConnectionFactory
(RedisConfiguration redisConfiguration) Constructs a newLettuceConnectionFactory
instance using the givenRedisSocketConfiguration
.LettuceConnectionFactory
(RedisConfiguration redisConfiguration, LettuceClientConfiguration clientConfiguration) Constructs a newLettuceConnectionFactory
instance using the givenRedisStaticMasterReplicaConfiguration
andLettuceClientConfiguration
.