IdCacheKeyGenerator

class IdCacheKeyGenerator(idFields: String = arrayOf("id")) : CacheKeyGenerator

A CacheKeyGenerator that uses the given id fields to compute the cache key. If the id field(s) is/are missing, the object is considered to not have an id.

See also

Constructors

Link copied to clipboard
constructor(vararg idFields: String = arrayOf("id"))

Functions

Link copied to clipboard
open override fun cacheKeyForObject(obj: Map<String, Any?>, context: CacheKeyGeneratorContext): CacheKey?

Returns a CacheKey for the given object or null if the object doesn't have an id