
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: 501
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
Next Generation Collaboration ...
Sep 14, 2021
Technology
hard drive recovery Toronto...
Jul 3, 2015
Technology
Micromax A255 Canvas Selfie...
Sep 14, 2015
Technology
Workflow Management System by ...
May 27, 2016
Technology
Connect Media...
Dec 1, 2014
Technology
Reactiv SUITE – professional, ...
Jun 15, 2022