package in.srain.cube.request;
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);
}