
blog address: http://blogs.shephertz.com/2013/12/13/applying-caching-and-offline-storage-in-app42-android-sdk/
keywords: Android caching, App42 Android sdk, Caching and offline, Caching and offline storage, caching in android app, Caching in app42, Offline appdata, Offline storage
member since: Jan 1, 2021 | Viewed: 429
Applying Caching and Offline Storage in App42 Android SDK
Category: Technology
We are excited to announce a new feature of offline caching and storage in our App42 Android SDK. This will enable your application to be responsive even if the network is not available and user can use your application flawlessly without any trouble. Using this feature is quite straightforward and requires a single line of code to enable it.
Below mentioned are the different policies and mechanisms of this feature:Offline Caching Offline caching enables your application to read data from local cache if network is not available. There are different cache levels that can be set using API and have been explained below:Cache Policies :1). Policy.CACHE_FIRST – Setting this policy will enable all read data to be first looked in to cache if data is available and not expired then it will return from cache otherwise network request will be made and cache will be updated for the same. You can set cache expiry time by using API as explained below. By default cache expiry is set to an hour.
// Setup caching policy
import com.shephertz.app42.paas.sdk.android.App42CacheManager;
import com.shephertz.app42.paas.sdk.android.App42CacheManager.Policy;
App42API.initialize(this, "
{ More Related Blogs }
Technology
Expert ILVE Oven Repairs: Keep...
Sep 27, 2024
Technology
Social media is here. It’s not...
Jan 29, 2016
Technology
Smeg Oven Repairs near Me: You...
Sep 30, 2024
Technology
Top 8 Benefits of a Massage Th...
Sep 30, 2024
Technology
Expert Westinghouse Gas Oven R...
Sep 30, 2024
Technology
The AI Egg...
Oct 1, 2024