Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created January 8, 2023 01:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xximjasonxx/67425ab6ac0570c588e4f512ee5520d4 to your computer and use it in GitHub Desktop.
Save xximjasonxx/67425ab6ac0570c588e4f512ee5520d4 to your computer and use it in GitHub Desktop.
public async Task<IActionResult> Run(
[Redis(key: "values", valueType: RedisValueType.Collection, Connection = "RedisConnectionString")] ICollector<Person> values)
{
values.Add(new Person { Name = "Name 1" });
values.Add(new Person { Name = "Name 2" });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment