We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45da936 commit b6aa9eeCopy full SHA for b6aa9ee
1 file changed
app/src/main/java/ge/tbcbank/retrocache/TestApi.kt
@@ -6,15 +6,11 @@ import retrofit2.http.Path
6
7
interface TestApi {
8
9
- @Cache(cacheTimeMillis = 60_000)
+ @Cache(tag = "mtag", cacheTimeMillis = 60_000)
10
@GET("search" + "/{query}/{page}")
11
suspend fun getBookWithPage(
12
@Path("page") page: String,
13
@Path("query") query: String = "Algo",
14
@CacheControl cachePolicy: CachePolicy = CachePolicy.Cached
15
): Response<BookPageDto>
16
-
17
- companion object {
18
- const val cacheTime = 10 * 60 * 1000L
19
- }
20
}
0 commit comments