Skip to content

Instantly share code, notes, and snippets.

@nicolaiarocci
Created May 27, 2016 14:15
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 nicolaiarocci/2654b88bc3f7fe818dfa8ac862599728 to your computer and use it in GitHub Desktop.
Save nicolaiarocci/2654b88bc3f7fe818dfa8ac862599728 to your computer and use it in GitHub Desktop.
var persons = new Dictionary<string, Person>() {
{"tom", new Person {Name = "tom", Age = 19}},
{"mike", new Person {Name = "mike", Age = 30}},
};
var expireAt = DateTime.Now.AddDays(-1);
var inserted = await cache.Insert(persons, expireAt);
Assert.That(inserted, Is.EqualTo(2));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment