Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created January 8, 2023 01:32
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/c6c8b3f10cf04a5b2f0a9056b75020d6 to your computer and use it in GitHub Desktop.
Save xximjasonxx/c6c8b3f10cf04a5b2f0a9056b75020d6 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 { Id = "1", Name = "Name 1" });
values.Add(new Person { Id = "1", Name = "Name 2" });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment