Skip to content

Commit b6aa9ee

Browse files
committed
Add tag to sample app api call
1 parent 45da936 commit b6aa9ee

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

app/src/main/java/ge/tbcbank/retrocache/TestApi.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,11 @@ import retrofit2.http.Path
66

77
interface TestApi {
88

9-
@Cache(cacheTimeMillis = 60_000)
9+
@Cache(tag = "mtag", cacheTimeMillis = 60_000)
1010
@GET("search" + "/{query}/{page}")
1111
suspend fun getBookWithPage(
1212
@Path("page") page: String,
1313
@Path("query") query: String = "Algo",
1414
@CacheControl cachePolicy: CachePolicy = CachePolicy.Cached
1515
): Response<BookPageDto>
16-
17-
companion object {
18-
const val cacheTime = 10 * 60 * 1000L
19-
}
2016
}

0 commit comments

Comments
 (0)