From the @CacheControl and @CacheControlField directives, will generate something like:
public object Cache {
public val maxAges: Map<String, MaxAge> = mapOf(
"Query.cachedBook" to MaxAge.Duration(60.seconds),
"User" to MaxAge.Duration(10.seconds),
"Reader.book" to MaxAge.Inherit,
)
}
which can then be passed to ExpirationCacheResolver
From the
@CacheControl
and@CacheControlField
directives, will generate something like:which can then be passed to
ExpirationCacheResolver