Skip to content

tsoa-next / tsoa-next / SpecCacheHandler

Interface: SpecCacheHandler ​

Defined in: packages/runtime/src/decorators/specPath.ts:54

Cache adapter used by SpecPath to memoize generated responses.

Methods ​

get() ​

ts
get(context): 
  | SpecResponseValue
  | Promise<SpecResponseValue | undefined>
  | undefined;

Defined in: packages/runtime/src/decorators/specPath.ts:55

Parameters ​

context ​

SpecCacheContext

Returns ​

| SpecResponseValue | Promise<SpecResponseValue | undefined> | undefined


set() ​

ts
set(context, value): void | Promise<void>;

Defined in: packages/runtime/src/decorators/specPath.ts:56

Parameters ​

context ​

SpecCacheContext

value ​

string

Returns ​

void | Promise<void>

TypeScript-first OpenAPI generation, route generation, and runtime validation.