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:
Add multiple items:
Remove multiple items:
Retrieve multiple items:
Note that is possible to change the expires time of the items also when you are retrieving them. In fact the method GetAllAsync offers two overloads that accept DateTimeOffset or TimeSpan in order to change the expiration time of the items without submit them again.
Last updated