Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose asynchronous connect method for Master/Slave connections #643

Closed
mp911de opened this issue Nov 7, 2017 · 0 comments
Closed

Expose asynchronous connect method for Master/Slave connections #643

mp911de opened this issue Nov 7, 2017 · 0 comments
Labels
type: feature A new feature

Comments

@mp911de
Copy link
Collaborator

mp911de commented Nov 7, 2017

No description provided.

@mp911de mp911de added the type: feature A new feature label Nov 7, 2017
@mp911de mp911de added this to the Lettuce 5.1.0 milestone Nov 7, 2017
mp911de added a commit that referenced this issue Dec 14, 2017
MasterSlave now exposes asynchronous connect methods to establish connection and fetch topology without blocking.

RedisClient redisClient = RedisClient.create();

List<RedisURI> nodes = Arrays.asList(RedisURI.create("redis://host1"),
        RedisURI.create("redis://host2"),
        RedisURI.create("redis://host3"));

CompletableFuture<StatefulRedisMasterSlaveConnection<String, String>> connectFuture = MasterSlave
        .connectAsync(redisClient, StringCodec.UTF8, nodes);
@mp911de mp911de closed this as completed Dec 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature A new feature
Projects
None yet
Development

No branches or pull requests

1 participant