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

Allow client to be created asynchronously #74

Closed
wants to merge 2 commits into from
Closed

Allow client to be created asynchronously #74

wants to merge 2 commits into from

Conversation

subvertnormality
Copy link

As outlined in #72 - sometimes we need to allow the client to connect to a Redis instance before attempting to make a request. For this reason a createClientAsync function is useful.

This is a callback version of the other PR I raised.

opts.cache.start(function(err) {
client = new CachingClient(client, opts);
error = err;
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to wait for Catbox to finish initialising, would it make more sense to put the callback in here?

@niklasR
Copy link
Contributor

niklasR commented Sep 20, 2017

Hello @subvertnormality,
Do you still want to get this merged?

@subvertnormality
Copy link
Author

Hi @niklasR we've decided to go down a different route, happy to close this if you feel it doesn't add anything to the library at this time.

@niklasR niklasR closed this Sep 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants