Skip to main content

KeyworkDocumentFetchOptions

Overview

Usage

import { KeyworkDocumentFetchOptions } from 'keywork/collections'

Properties

cacheTtl

optional cacheTtl: `number`

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.

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