The parameters for kvCache function.
The document loader to decorate with a cache.
kv: KvStore
The key-value store to use for backing the cache.
optional
prefix: KvKey
The key prefix to use for namespacing the cache.
["_fedify", "remoteDocument"]
by default.
optional
rules: [, Temporal.Duration][]
The per-URL cache rules in the array of [urlPattern, duration]
pairs
where urlPattern
is either a string, a URL, or
a URLPattern and duration
is a Temporal.Duration.
The duration
is allowed to be at most 30 days.
By default, 5 minutes for all URLs.