You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Hi,
We use basic redis single node in our dev, laptop station, but replicated or clustered redis (in AWS),
Today we need to do setCredentialsResolver at singleserver, replicatedserver, clusterserver level, which add complication when reading config from a yaml file.
Our application was just :
config = Config.fromYaml();
client = Redisson.Create(config);
Now when we want to use CredentialsResolver, it look more like :
String yaml = IOUtils.toString(stream from file ...)
config = Config.fromYaml(yaml)
if (yaml.contains("replicatedServersConfig")) {
config.useReplicatedServers().setCredentialsResolver(credentialsResolver.get());
} else if (yaml.contains("clusterServersConfig")) {
config.useClusterServers().setCredentialsResolver(credentialsResolver.get());
} else if (yaml.contains("singleServerConfig")) {
config.useSingleServer().setCredentialsResolver(credentialsResolver.get());
} ...
client = Redisson.Create(config);
Describe the solution you'd like
Because it isn't possible today with the 'Config' class to know what sort of redis server we are using,
I think we could add a setCredentialsResolver method at Config level, that would do the call to
'setCredentialsResolver' to the correct redis config type.
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Hi,
We use basic redis single node in our dev, laptop station, but replicated or clustered redis (in AWS),
Today we need to do setCredentialsResolver at singleserver, replicatedserver, clusterserver level, which add complication when reading config from a yaml file.
Our application was just :
config = Config.fromYaml();
client = Redisson.Create(config);
Now when we want to use CredentialsResolver, it look more like :
String yaml = IOUtils.toString(stream from file ...)
config = Config.fromYaml(yaml)
if (yaml.contains("replicatedServersConfig")) {
config.useReplicatedServers().setCredentialsResolver(credentialsResolver.get());
} else if (yaml.contains("clusterServersConfig")) {
config.useClusterServers().setCredentialsResolver(credentialsResolver.get());
} else if (yaml.contains("singleServerConfig")) {
config.useSingleServer().setCredentialsResolver(credentialsResolver.get());
} ...
client = Redisson.Create(config);
Describe the solution you'd like
Because it isn't possible today with the 'Config' class to know what sort of redis server we are using,
I think we could add a setCredentialsResolver method at Config level, that would do the call to
'setCredentialsResolver' to the correct redis config type.
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: