Create a cache rule for a proxy database

Create a cache rule for a specific logical database behind a proxy.

Adds a per-table or per-query TTL override rule. Exactly one of table or
template_hash must be set on the rule.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Organization identifier

string
required

Proxy identifier

string
required

Name of the logical database within the proxy

Body Params

A cache rule configuring a per-table or per-query TTL override for a logical database behind a proxy.

Exactly one of table or template_hash must be set: table selects a Table rule,
template_hash selects a Query rule. The rule type is derived from which field is set.

string

Hash of the normalized SQL template. Set for Query rules.

string

Table name. Set for Table rules.

string
enum
required

Cache mode to use for this rule.

Allowed:
uint32

TTL value in seconds. Only applicable when mode is QUERY_CACHE_MODE_MANUAL.

Responses

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json