Reset Stub Cache

Request

GET /api/reset_rpc_channel/{endpoints}

Description

Reset the connection cache of brpc

Path parameters

  • endpoints
    • all: clear all caches
    • host1:port1,host2:port2: clear cache of the specified target

Request body

None

Response

  1. ```
  2. {
  3. "msg":"success",
  4. "code":0,
  5. "data": "no cached channel.",
  6. "count":0
  7. }
  8. ```

Examples

  1. ```
  2. curl http://127.0.0.1:8040/api/reset_rpc_channel/all
  3. ```
  4. ```
  5. curl http://127.0.0.1:8040/api/reset_rpc_channel/1.1.1.1:8080,2.2.2.2:8080
  6. ```