Properties
| Name | Type | Description |
|---|---|---|
| disabled | boolean | When set to true, disables the caching of SQL responses. (Default: false) |
| max_age | integer | When present, specifies max duration for which items should persist in the cache. (Default: 60) |
| stale_while_revalidate | integer | When present, indicates the number of seconds cache may serve the response after it becomes stale. (Default: 15) |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/hyperdrive_hyperdrive-caching",
"title": "hyperdrive_hyperdrive-caching",
"properties": {
"disabled": {
"description": "When set to true, disables the caching of SQL responses. (Default: false)",
"example": false,
"type": "boolean"
},
"max_age": {
"description": "When present, specifies max duration for which items should persist in the cache. (Default: 60)",
"example": 60,
"type": "integer"
},
"stale_while_revalidate": {
"description": "When present, indicates the number of seconds cache may serve the response after it becomes stale. (Default: 15)",
"example": 15,
"type": "integer"
}
},
"type": "object"
}