GQLCacheControl
caliban.wrappers.Caching.GQLCacheControl
case class GQLCacheControl(maxAge: Option[Duration], scope: Option[CacheScope], inheritMaxAge: Boolean) extends GQLDirective
Assigns a cache hint to a field or a type
Value parameters
- inheritMaxAge
-
Whether the maxAge should be inherited from the parent type
- maxAge
-
The maximum duration that this field should be cached for
- scope
-
The scope of that should be applied to the cache
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass GQLDirectivetrait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
Members list
In this article