Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Using Async Connection #29

Open
allas opened this issue Feb 28, 2014 · 2 comments
Open

Using Async Connection #29

allas opened this issue Feb 28, 2014 · 2 comments

Comments

@allas
Copy link

allas commented Feb 28, 2014

I am using the following to create the connection.
client = new RedisClient(config.getRedisHost());
async = client.connectAsync();
async.set("test", "123");
async.get("test");
I am not seeing the keys in the Redis. I also used 'async.lpush' after the set, still not seeing it. Is there anything I am missing here that I should be doing? Please help me with this.

@wg
Copy link
Owner

wg commented Mar 5, 2014

Hi @allas, are you checking that the keys are set with a lettuce connection? Or via redis-cli or something else? If you're using the same async connection you must wait for completion of the futures. The awaitAll(...) method can help.

@allas
Copy link
Author

allas commented Mar 5, 2014

I am using redis-cli for checking the keys. I am not using awaitAll(...)
method but will give this a try. Thanks for your response!

On Tuesday, March 4, 2014, Will Glozer [email protected] wrote:

Hi @allas https://github.com/allas, are you checking that the keys are
set with a lettuce connection? Or via redis-cli or something else? If
you're using the same async connection you must wait for completion of the
futures. The awaitAll(...) method can help.

Reply to this email directly or view it on GitHubhttps://github.com//issues/29#issuecomment-36702742
.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants