Skip to content

Async for bulk operation #338

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

Merged
merged 7 commits into from
Mar 29, 2023
Merged

Async for bulk operation #338

merged 7 commits into from
Mar 29, 2023

Conversation

zulander1
Copy link
Contributor

Added Async suffix on async operations

@@ -676,12 +676,12 @@ public async Task<List<string>> Insert(IEnumerable<T> items)
}

/// <inheritdoc/>
public async Task<List<string>> Insert(IEnumerable<T> items, TimeSpan timeSpan)
public async Task InsertAsync(IEnumerable<T> items, TimeSpan timeSpan)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
public async Task InsertAsync(IEnumerable<T> items, TimeSpan timeSpan)
public async Task<List<string>> InsertAsync(IEnumerable<T> items, TimeSpan timeSpan)

{
var distinct = items.Distinct().ToArray();
if (!distinct.Any())
{
return new List<string>();
return;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return;
return new List<string>();

Copy link
Member

@slorello89 slorello89 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@slorello89 slorello89 merged commit dc2e33e into redis:main Mar 29, 2023
@zulander1 zulander1 deleted the async_for_bulk_operation branch March 29, 2023 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants