Support for the "bulk put'-type" operation is a bit, but limited at the moment (read: nonexistent). But a little thought suggests that this is probably correct - if you threw a collection of objects into the cache, he would not know how to give them meaningful keys or tags (of which more at one moment). You could fake it using the extension method, which took a collection of objects and looked, perhaps, at the Name or Id property on each object to put objects in the cache, but under covers it still comes down to putting objects in the cache one at a time.
However, to get a set of objects from the cache, there is another option to the GetObjectsInRegion(regionname) method. If at the point where the object is inserted into the cache, you add a tag to it, for example. for a product, mark it with a category, later you can return all the objects for a specific tag using the GetObjectsByTag method. The great thing (I think) about using tags is that you can put any number of them in an object in the cache, for example. for a product, you can mark it with a category, as well as a supplier and, say, a price range. This gives you great flexibility in how you can request your cached items - you can request any single tag or you can make AND / OR requests using the GetObjectsByAllTags / GetObjectsByAnyTag .
source share