## Get Cache Reserve setting `client.Cache.CacheReserve.Get(ctx, query) (*CacheReserveGetResponse, error)` **get** `/zones/{zone_id}/cache/cache_reserve` 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](https://developers.cloudflare.com/cache/about/cache-reserve) for more information. ### Parameters - `query CacheReserveGetParams` - `ZoneID param.Field[string]` Identifier. ### Returns - `type CacheReserveGetResponse struct{…}` - `ID CacheReserve` The identifier of the caching setting. - `const CacheReserveCacheReserve CacheReserve = "cache_reserve"` - `Editable bool` Whether the setting is editable. - `Value CacheReserveGetResponseValue` Value of the Cache Reserve zone setting. - `const CacheReserveGetResponseValueOn CacheReserveGetResponseValue = "on"` - `const CacheReserveGetResponseValueOff CacheReserveGetResponseValue = "off"` - `ModifiedOn Time` Last time this setting was modified. ### Example ```go package main import ( "context" "fmt" "github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go/cache" "github.com/cloudflare/cloudflare-go/option" ) func main() { client := cloudflare.NewClient( option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"), ) cacheReserve, err := client.Cache.CacheReserve.Get(context.TODO(), cache.CacheReserveGetParams{ ZoneID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", cacheReserve.ID) } ``` #### Response ```json { "errors": [], "messages": [], "result": { "editable": true, "id": "cache_reserve", "value": "off" }, "success": true } ```