Skip to main content

WithCreateBatchesFunc

Configures how cache items should be batched for refresh. Defaults to single item batching.

def WithCreateBatchesFunc(
createBatchesCb: CreateBatchesFunc
) - > Option

Configures how cache items should be batched for refresh. Defaults to single item batching.

Parameters

NameTypeDescription
createBatchesCbCreateBatchesFuncThe function to be used for creating batches of cache items for refresh.

Returns

TypeDescription
OptionAn Option function that modifies the Options struct to set the createBatchesCb.