跳到内容

tsoa-next / @tsoa-next/runtime / SpecCacheHandler

接口: SpecCacheHandler

定义如下: packages/runtime/src/decorators/specPath.ts:54

使用的缓存适配器 SpecPath 以记忆生成的响应。

方法

get()

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

定义如下: packages/runtime/src/decorators/specPath.ts:55

参数

context

SpecCacheContext

回返

| SpecResponseValue | Promise<SpecResponseValue | undefined> | undefined


set()

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

定义如下: packages/runtime/src/decorators/specPath.ts:56

参数

context

SpecCacheContext

value

string

回返

void | Promise<void>

贡献者

暂无相关贡献者

页面历史

暂无最近变更历史

以 TypeScript 为先的 OpenAPI 生成、路由生成与运行时验证。