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 ww . ja v a 2s . c om import in.srain.cube.cache.ICacheAble; public interface ICacheAbleRequest<T> extends ICacheAble<T>, IRequest<T> { /** * check cache is disabled * <p/> * 1. will not load cache * <p/> * 2. data will not set to cache * * @return */ public boolean cacheIsDisabled(); /** * set a timeout, when request time over this value, cache data will be used. * * @param timeOut */ public void setTimeout(int timeOut); /** * Using cache data if existent, ignore whether it is expired or not. * * @param use */ public void useCacheAnyway(boolean use); }