Hallo everyone!
I've a problem with this fantastic project: i want to set the Cache value to set dynamically time of my service call.
I found only the declaration of class and set "timeToLive" parameter in declaration (example below)
@restservice
public interface NovitaAPI {
@get("/stream/last/{offset}/{orderby}")
@cached(policy = CachePolicy.ENABLED, timeToLive = 30 * 60 * 1000)
//void getForecast(@QueryParam("user_email") String user_email, Callback callback);
/void getStream(@Header("Authorization") String token,
@Body BaseRequest requestBody,
Callback callback);/
void getStream(@path("offset") String offset,@path("orderby") String orderby,@Header("Authorization") String token,
Callback callback);
}
There's a way to do it? I want only set timeToLive before call getStream.
Thank in advance!
Hallo everyone!
I've a problem with this fantastic project: i want to set the Cache value to set dynamically time of my service call.
I found only the declaration of class and set "timeToLive" parameter in declaration (example below)
@restservice
public interface NovitaAPI {
@get("/stream/last/{offset}/{orderby}")
@cached(policy = CachePolicy.ENABLED, timeToLive = 30 * 60 * 1000)
//void getForecast(@QueryParam("user_email") String user_email, Callback callback);
/void getStream(@Header("Authorization") String token,
@Body BaseRequest requestBody,
Callback callback);/
void getStream(@path("offset") String offset,@path("orderby") String orderby,@Header("Authorization") String token,
Callback callback);
}
There's a way to do it? I want only set timeToLive before call getStream.
Thank in advance!