Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Smp 3.0 sp03 Offline Caching Issue in Android App

After I apply GET request for a URL in Android app, I use mergeEntries to update cache for entries but I realized that cache.mergeEntries method just updates server cache, not a local cache.

Also, cache.readEntriesLocal method just gives me entries that are added by cache.addEntry(entry)

Is there any way to fill up local cache with all server entries after GET request ?

Tags:
Former Member
replied

Hi Serkan,

there is no method in SDK libraries, that will help you with such action.

If you really need to save all entries from your server cache to your local cache, you will need to do it by your self.

How?

After you save entries from GET request use Cache#readEntriesServer (reed all entries from server cache) and then Cache#addEntry (store the entries into local cache).


Just let me ask you why do you need this?

Do you use delta token?


Regards,

Jan Gold

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question