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 callback function used to define the batching strategy for cache items during refresh.

Returns

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