CachingGuidancePlugin

显示开发代理在指定时间段内截获同一请求时出现警告。

命令提示符的屏幕截图,其中包含开发人员代理缓存指南插件,其中显示了有关发出过于频繁的请求的警告。

配置示例

{
  "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.0.0/rc.schema.json",
  "plugins": [
    {
      "name": "CachingGuidancePlugin",
      "enabled": true,
      "pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll",
      "configSection": "cachingGuidance"
    }
  ],
  "cachingGuidance": {
    "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.0.0/cachingguidanceplugin.schema.json",
    "cacheThresholdSeconds": 5
  }
}

配置属性

财产 描述 违约
cacheThresholdSeconds 触发指导警告的相同请求之间的秒数。 5

命令行选项

没有