CacheOption
Type Alias: CacheOption
Section titled “Type Alias: CacheOption”CacheOption =
boolean| {bypass?:boolean;key?:string;ttl?:number; }
Defined in: packages/fetch-kit/src/types.ts:104
Per-request cache override.
false: bypass cache, do not read or write.true: read+write using the client’s default TTL.- Object: read+write, but override TTL or key, or skip reads with
bypass.
Union Members
Section titled “Union Members”boolean
Type Literal
Section titled “Type Literal”{ bypass?: boolean; key?: string; ttl?: number; }
bypass?
Section titled “bypass?”
optionalbypass?:boolean
When true, ignore any cached value and fetch fresh. The fresh
response is still written back to the cache.
optionalkey?:string
Override the computed cache key.
optionalttl?:number
Override the default TTL for this request.