HTTP interface for the query results cache
The query results cache HTTP API lets you control the cache for AQL query results
See The AQL query results cache for a description of the feature and the configuration options.
The AQL query results cache is only available for single servers, i.e. servers that
are not part of a cluster setup.
List the entries of the AQL query results cache
GET
/_db/{database-name}/_api/query-cache/entries
Returns an array containing the AQL query results currently stored in the query results
cache of the selected database.
Query Parameters
HTTP Headers
Responses
Retrieve the entries stored in the AQL query results cache of the current database:
curl --header 'accept: application/json' --dump - 'http://localhost:8529/_api/query-cache/entries'
Clear the AQL query results cache
DELETE
/_db/{database-name}/_api/query-cache
Clears all results stored in the AQL query results cache for the current database.
Query Parameters
HTTP Headers
Clear the AQL query results cache of the current database:
curl -X DELETE --header 'accept: application/json' --dump - 'http://localhost:8529/_api/query-cache'
Get the AQL query results cache configuration
GET
/_db/{database-name}/_api/query-cache/properties
Returns the global AQL query results cache configuration.
Path Parameters
Query Parameters
HTTP Headers
Responses
Retrieve the global configuration of the AQL query results cache:
curl --header 'accept: application/json' --dump - 'http://localhost:8529/_api/query-cache/properties'
Set the AQL query results cache configuration
PUT
/_db/{database-name}/_api/query-cache/properties
Adjusts the global properties for the AQL query results cache.
Changing the properties may invalidate all results currently in the cache.
Path Parameters
Query Parameters
HTTP Headers
Request Body application/json object
- The result cache configuration settings to change.
Responses
Change some properties of the global configuration of the AQL query results cache:
curl -X PUT --header 'accept: application/json' --data-binary @- --dump - 'http://localhost:8529/_api/query-cache/properties' <<'EOF'
{
"mode": "demand",
"maxResults": 32
}
EOF