HonocordOptions
Interface: HonocordOptions
Section titled “Interface: HonocordOptions”Defined in: Honocord.ts:55
Constructor options for Honocord.
Properties
Section titled “Properties”cacheTtlMs?
Section titled “cacheTtlMs?”
optionalcacheTtlMs?: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.
debugRest?
Section titled “debugRest?”
optionaldebugRest?:boolean
Defined in: Honocord.ts:69
Whether to turn on debug logging for REST API requests.
Default
Section titled “Default”falseisCFWorker?
Section titled “isCFWorker?”
optionalisCFWorker?: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.
Default
Section titled “Default”c.env.IS_CF_WORKER === "true" # later determined from environment variable