Skip to content

Instantly share code, notes, and snippets.

@phillijw
Created December 20, 2017 16:17
Show Gist options
  • Save phillijw/7c993c8dc345815a980a92416d1bbae8 to your computer and use it in GitHub Desktop.
Save phillijw/7c993c8dc345815a980a92416d1bbae8 to your computer and use it in GitHub Desktop.
IDatabase db = redis.GetDatabase();
IBatch batch = db.CreateBatch();
foreach (var filename in filenames)
{
tasks.Add(batch.SortedSetAddAsync("files", filename, 0));
}
batch.Execute();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment