@Internal public class RedisConnectionUtil extends Object
| Constructor and Description |
|---|
RedisConnectionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static io.lettuce.core.api.StatefulConnection |
findRedisConnection(io.micronaut.context.BeanLocator beanLocator,
Optional<String> serverName,
String errorMessage)
Utility method for establishing a redis connection.
|
public static io.lettuce.core.api.StatefulConnection findRedisConnection(io.micronaut.context.BeanLocator beanLocator,
Optional<String> serverName,
String errorMessage)
beanLocator - The bean locator to useserverName - The server name to useerrorMessage - The error message to use if the connection can't be foundio.micronaut.context.exceptions.ConfigurationException - If the connection cannot be found