Work with multiple items
If you need to add, remove or retrieve more than one item you don't have to send multiple requests into Redis. This library offers few methods that allow you to use a single command in order to do that increasing the performances because there is only one roundtrip from your app to the Redis server.
You instance:
var user1 = new User()
{
Username = "imperugo",
Firstname = "Ugo",
Lastname = "Lattanzi",
Twitter = "@imperugo"
Blog = "http://tostring.it",
Company = new Company
{
Name = "My Super Company",
Vat = "IT12345678911",
Address = "somewhere road 12"
}
}
var user2 = new User()
{
Username = "mario.rossi",
Firstname = "Mario",
Lastname = "Rossi",
Twitter = "@mariorossi"
Blog = "http://imperugo.tostring.it/",
Company = new Company
{
Name = "My Super Company",
Vat = "IT12345678911",
Address = "somewhere road 12"
}
}Add multiple items:
Remove multiple items:
Retrieve multiple items:
Last updated
Was this helpful?