Optional
cloneIf true, the cache will only return instances that are safe to be modified by the caller. If false, the caller
should take care not to modify potentially cached items.
The function used to copy values is structuredClone
,
unless a custom deepCopy function is provided.
Default: false.
Optional
deepOnly relevant if cloneItems is true.
By default it uses the global structuredClone
function.
Unique id of the cache provider.
Optional
maxA limit on the number of items kept in the cache. Note that this applies per table, if it is a number. If an object is passed, keys should table ids and values limit per table.
Caching-related configuration for a fetch client