I'm following the instructions on the Kinvey Android Caching and Offline guide. I have just changed one instance of an AsyncAppData object to use the CACHEFIRST cache policy with an InMemoryLRUCache and the LOCAL_FIRST offline policy with a SqlLiteOfflineStore. I was expecting to observe a typical delay of a couple of seconds to populate the data in my adapter on the first time after making this change, and then observe an essentially instant population of that data if it needed to be repopulated, for example if I changed the orientation of my device (which causes the data to reload). However, I didn't observe any difference in speed at all, leading me to believe that neither the cache or offline store are working.
So, as a first step to understanding this problem, I wanted to know if there is any way, either via logcat or any other way, to actually tell where the data I've got has come from, ie. from the cache, offline store or online.