KeyworkDocumentFetchOptions
Overview
Usage
- Node
- Deno
import { KeyworkDocumentFetchOptions } from 'keywork/collections'
import { KeyworkDocumentFetchOptions } from 'https://deno.land/x/keywork/collections'
Properties
cacheTtl
optional cacheTtl: `number`
See
Defined in
collections/KeyworkDocumentReference.ts:42
deserializeAs
optional deserializeAs: [`DeserializationTransformers`](../types/DeserializationTransformers.mdx)
Determines how the fetched data will be interpreted after fetching.
Default Value
'text'
Defined in
collections/KeyworkDocumentReference.ts:48
The cacheTtl parameter must be an integer that is greater than or equal to 60. It defines the length of time in seconds that a KV result is cached in the edge location that it is accessed from. This can be useful for reducing cold read latency on keys that are read relatively infrequently.