Back to project page cube-sdk.
The source code is released under:
Apache License
If you think the Android project cube-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package in.srain.cube.request; /*from w w w . j a va 2s . c o m*/ import android.content.Context; import in.srain.cube.cache.CacheManager; public class RequestCacheManager { private static CacheManager sInstance; public static CacheManager getInstance() { if (sInstance == null) { throw new RuntimeException("Call RequestCacheManager::init() first"); } return sInstance; } public static void init(Context content, String cacheDir, int memoryCacheSizeInKB, int fileCacheSizeInKB) { sInstance = new CacheManager(content, cacheDir, memoryCacheSizeInKB, fileCacheSizeInKB); } }