
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: 513
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
Microsoft Teams Presenter Mode...
Feb 1, 2022
Technology
best web development company...
Jun 18, 2021
Technology
Best Offshore Development Comp...
Nov 15, 2022
Technology
Transfer API...
Jan 10, 2025
Technology
The Importance of Nutrient Rec...
May 8, 2023
Technology
E-Commerce Customer Data Analy...
Jun 20, 2014