IdCacheKeyGenerator

constructor(vararg idFields: String = arrayOf("id"), keyScope: CacheKey.Scope = CacheKey.Scope.TYPE)

Parameters

idFields

the possible names of the fields to use as id. The first present one is used.

keyScope

the scope of the generated cache keys. Use CacheKey.Scope.TYPE to namespace the keys by the concrete type name, or CacheKey.Scope.SERVICE if the ids are unique across the whole service.