
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: 497
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
Chat-Bot Development Company...
Apr 5, 2022
Technology
Top Blockchain Development Com...
Aug 12, 2024
Technology
Top Software Development Trend...
Nov 28, 2022
Technology
Electronics Blog - WIN SOURCE ...
Oct 17, 2019
Technology
Cheap calls and mobile technol...
Mar 25, 2014
Technology
Your Source for Latest Tech ne...
Sep 9, 2021