Skip to Content
author's profile photo Former Member
Former Member

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 ?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Dec 09, 2014 at 08:08 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 18, 2014 at 03:34 PM

    Hi Serkan,

    Did you get a chance to go through this guide.? Getting Started with Kapsel - Part 15 -- Offline OData (New in SP05)

    Regards

    JK

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.