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
| Name | Type | Description |
|---|---|---|
| createBatchesCb | CreateBatchesFunc | The callback function used to define the batching strategy for cache items during refresh. |
Returns
| Type | Description |
|---|---|
Option | An Option function that modifies the Options struct to set the createBatchesCb. |