GetObjectsInRegion Method not working with ReadThrough Data Provider


  • Hi,

    I'm testing my application against the AppFabric Cache v1.1 and noticed that the Cache wasn't returning data when I tried to retrieve all values in a Region.  However, the Get method returned a value...

    After some troubleshooting, I noticed that if Get method will use the ReadThrough capability to retrieve data from a backend data store; but the GetObjectsInRegion method doesn't.  It only returns values that are in memory and never triggers a call to the ReadThrough Provider.

    My question: is this the way this method is supposed to function?  If so, couldn't this cause problems in an application thinking its retrieving all data in a region when Expired and Evicted values won't be created...

    I'd appreciate any information from anyone who's experienced this issue in v1.1.


    Thanks, KBW

    Saturday, February 11, 2012 5:49 AM

All replies

  • Hi,

    ReadThrugh will only work with key based APIs. GetObjectInRegion() won't read from the back-end in case item is not in cache.

    You can use BulkGet method to do read-through for set of items .




    Monday, February 13, 2012 10:30 AM