Skip to content

Reset redis cache custom api

  • Reset redis cache of system APIs.

Request Method: POST

URL

/api/system-api/user-path/reset-redis-cache-custom-apis

Request payload

  • Single custom API redis cache reset.
{
    "name":"custom_api_name"
}
  • Reset redis cache of multiple custom APIs.
[   
    {
        "name":"custom_api_name"
    },
    {
        "name":"custom_api_name"
    }
]

Reset cache custom API

Reset cache of the custom API using global object 'g'.

await g.sys.cache.resetCacheCustomApis("CUSTOM_API_NAME");

API Response

{
    "success": true,
    "statusCode": 200,
    "data": 1
}