/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-keygenerator-c-cont-3ad61d039a90-keygenerator-c-context-string-promise-s0282-c0000.md
keyGenerator: `(c: Context) => string | Promise ` - hono-docs
keyGenerator: (c: Context) = string | Promise Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt key...
keyGenerator: (c: Context) => string | Promise
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#keygenerator-c-context-string-promise
Summary
Generates keys for every request in the cacheName store. This can be used to cache data based on request parameters or context parameters. The default is c.req.url.
Content
Generates keys for every request in the cacheName store. This can be used to cache data based on request parameters or context parameters. The default is c.req.url.