Skip to content

HonocordOptions

Defined in: Honocord.ts:55

Constructor options for Honocord.

optional cacheTtlMs?: number

Defined in: Honocord.ts:75

Default TTL (in MILLISECONDS) for cached entities when a cache adapter is registered via withCache.

Set 0 to disable expiration.


optional debugRest?: boolean

Defined in: Honocord.ts:69

Whether to turn on debug logging for REST API requests.

false

optional isCFWorker?: boolean

Defined in: Honocord.ts:63

Indicates whether the Honocord instance is running on Cloudflare Workers.

This affects how interactions are processed, allowing for asynchronous handling using the Workers’ execution context.

c.env.IS_CF_WORKER === "true" # later determined from environment variable