merge

abstract fun merge(record: Record, cacheHeaders: CacheHeaders): Set<String>

Return

A set of record field keys that have changed. This set is returned by Record.mergeWith.

Parameters

record

The Record to merge.

cacheHeaders

The CacheHeaders associated with the request which generated this record.


abstract fun merge(records: Collection<Record>, cacheHeaders: CacheHeaders): Set<String>

Calls through to NormalizedCache.merge. Implementations should override this method if the underlying storage technology can offer an optimized manner to store multiple records.

Return

A set of record field keys that have changed. This set is returned by Record.mergeWith.

Parameters

records

The collection of Records to merge.

cacheHeaders

The CacheHeaders associated with the request which generated this record.


open fun merge(    record: Record,     cacheHeaders: CacheHeaders,     recordMerger: RecordMerger): Set<String>

Return

A set of record field keys that have changed. This set is returned by RecordMerger.merge.

Parameters

record

The Record to merge.

cacheHeaders

The CacheHeaders associated with the request which generated this record.

recordMerger

The RecordMerger to use when merging the record.


open fun merge(    records: Collection<Record>,     cacheHeaders: CacheHeaders,     recordMerger: RecordMerger): Set<String>

Calls through to NormalizedCache.merge. Implementations should override this method if the underlying storage technology can offer an optimized manner to store multiple records.

Return

A set of record field keys that have changed. This set is returned by RecordMerger.merge.

Parameters

records

The collection of Records to merge.

cacheHeaders

The CacheHeaders associated with the request which generated this record.

recordMerger

The RecordMerger to use when merging the records.