property CacheMiddlewareOptions.vary

Per-request discriminator values appended to the cache key after the tenant segment. Each returned string is length-prefixed and joined in order, so two requests differing in any value never share an entry. Omitted leaves the key unchanged.

Type

(ctx: IRequestContext) => readonly string[]

Usage

import { type CacheMiddlewareOptions } from "cache-plugin/src/index.ts";