Skip to main content

cache_cache_reserve

Creates, updates, deletes, gets or lists a cache_cache_reserve resource.

Overview

Namecache_cache_reserve
TypeResource
Idcloudflare.cache.cache_cache_reserve

Fields

The following fields are returned by SELECT queries:

Get Cache Reserve setting response.

NameDatatypeDescription
idstringThe identifier of the caching setting. (cache_reserve)
editablebooleanWhether the setting is editable.
modified_onstring (date-time)Last time this setting was modified.
valuestringValue of the Cache Reserve zone setting. (on, off) (default: off)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectzone_idIncrease cache lifetimes by automatically storing all cacheable files into Cloudflare's persistent object storage buckets. Requires Cache Reserve subscription. Note: using Tiered Cache with Cache Reserve is highly recommended to reduce Reserve operations costs. See the developer docs for more information.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
zone_idstringThe Cloudflare zone ID.

SELECT examples

Increase cache lifetimes by automatically storing all cacheable files into Cloudflare's persistent object storage buckets. Requires Cache Reserve subscription. Note: using Tiered Cache with Cache Reserve is highly recommended to reduce Reserve operations costs. See the developer docs for more information.

SELECT
id,
editable,
modified_on,
value
FROM cloudflare.cache.cache_cache_reserve
WHERE zone_id = '{{ zone_id }}' -- required
;