tags

open override val tags: Array<out SurrogateKey>(source)

The tags of this unique identifier.

If the namespace matches but the tags are different, they are treated as different cache entries. Tags are useful for separating caches for variations based on query parameters or grouping for revalidation.

null values are not allowed. Instead, represent them with compound types like Pair.

val tags = arrayOf(
"param1" to null,
"param2" to 123
)