API v2.x

resetCache #

Asynchronously clears the cache database.

Query Syntax #


Copied to clipboard!
URL: http://kuzzle:7512/admin/_resetCache?database=[internalCache|memoryStorage]
Method: POST

Other protocols #

Copied to clipboard!
  "database": "internalCache"

Arguments #

  • database: there are two Redis databases that you can clear
    • internalCache : used by Kuzzle to cache internal data, such as authentication tokens, documents followed by real-time subscriptions, active paginated search queries, API usage statistics or cluster state
    • memoryStorage : memory cache managed by Kuzzle's memoryStorage API

Response #

Returns a confirmation that the command is being executed.

Copied to clipboard!
  "requestId": "d16d5e8c-464a-4589-938f-fd84f46080b9",
  "status": 200,
  "error": null,
  "controller": "admin",
  "action": "resetCache",
  "collection": null,
  "index": null,
  "result": { "acknowledge": true }