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

Fix loading of all keys for large databases #299

Merged
merged 1 commit into from Jan 30, 2020
Merged

Fix loading of all keys for large databases #299

merged 1 commit into from Jan 30, 2020

Conversation

patriksimek
Copy link
Contributor

@patriksimek patriksimek commented Jan 8, 2020

Since getting a list of keys is asynchronous from getting a value of a single key, there're situations, when key no longer exists in the database, so the script will throw because of data being null. This fix ensures we skip null values.

Since getting a list of keys is asynchronous from getting a value of a single key, there're situations, when key no longer exists in the database, so the script will because of data being null. This fix ensures we skip null values.
@wavded
Copy link
Collaborator

wavded commented Jan 30, 2020

@patriksimek good catch, thank you!

@wavded wavded merged commit d9fe6e0 into tj:master Jan 30, 2020
jellis24 added a commit to jellis24/connect-redis that referenced this pull request Apr 6, 2022
Since getting a list of keys is asynchronous from getting a value of a single key, there're situations, when key no longer exists in the database, so the script will because of data being null. This fix ensures we skip null values.

PR: tj/connect-redis#299
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