Skip to content

Problem while setting cache #54

Description

@klide10

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions