# Cache

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#CachePurgeResponse">CachePurgeResponse</a>

Methods:

- <code title="post /zones/{zone_id}/purge_cache">client.Cache.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#CacheService.Purge">Purge</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#CachePurgeParams">CachePurgeParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#CachePurgeResponse">CachePurgeResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

## CacheReserve

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#CacheReserve">CacheReserve</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#CacheReserveClear">CacheReserveClear</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#State">State</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#CacheReserveClearResponse">CacheReserveClearResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#CacheReserveEditResponse">CacheReserveEditResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#CacheReserveGetResponse">CacheReserveGetResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#CacheReserveStatusResponse">CacheReserveStatusResponse</a>

Methods:

- <code title="post /zones/{zone_id}/cache/cache_reserve_clear">client.Cache.CacheReserve.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#CacheReserveService.Clear">Clear</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#CacheReserveClearParams">CacheReserveClearParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#CacheReserveClearResponse">CacheReserveClearResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="patch /zones/{zone_id}/cache/cache_reserve">client.Cache.CacheReserve.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#CacheReserveService.Edit">Edit</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#CacheReserveEditParams">CacheReserveEditParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#CacheReserveEditResponse">CacheReserveEditResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/cache/cache_reserve">client.Cache.CacheReserve.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#CacheReserveService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#CacheReserveGetParams">CacheReserveGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#CacheReserveGetResponse">CacheReserveGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/cache/cache_reserve_clear">client.Cache.CacheReserve.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#CacheReserveService.Status">Status</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#CacheReserveStatusParams">CacheReserveStatusParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#CacheReserveStatusResponse">CacheReserveStatusResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

## SmartTieredCache

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#SmartTieredCacheDeleteResponse">SmartTieredCacheDeleteResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#SmartTieredCacheEditResponse">SmartTieredCacheEditResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#SmartTieredCacheGetResponse">SmartTieredCacheGetResponse</a>

Methods:

- <code title="delete /zones/{zone_id}/cache/tiered_cache_smart_topology_enable">client.Cache.SmartTieredCache.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#SmartTieredCacheService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#SmartTieredCacheDeleteParams">SmartTieredCacheDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#SmartTieredCacheDeleteResponse">SmartTieredCacheDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="patch /zones/{zone_id}/cache/tiered_cache_smart_topology_enable">client.Cache.SmartTieredCache.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#SmartTieredCacheService.Edit">Edit</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#SmartTieredCacheEditParams">SmartTieredCacheEditParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#SmartTieredCacheEditResponse">SmartTieredCacheEditResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/cache/tiered_cache_smart_topology_enable">client.Cache.SmartTieredCache.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#SmartTieredCacheService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#SmartTieredCacheGetParams">SmartTieredCacheGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#SmartTieredCacheGetResponse">SmartTieredCacheGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

## Variants

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#VariantDeleteResponse">VariantDeleteResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#VariantEditResponse">VariantEditResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#VariantGetResponse">VariantGetResponse</a>

Methods:

- <code title="delete /zones/{zone_id}/cache/variants">client.Cache.Variants.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#VariantService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#VariantDeleteParams">VariantDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#VariantDeleteResponse">VariantDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="patch /zones/{zone_id}/cache/variants">client.Cache.Variants.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#VariantService.Edit">Edit</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#VariantEditParams">VariantEditParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#VariantEditResponse">VariantEditResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/cache/variants">client.Cache.Variants.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#VariantService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#VariantGetParams">VariantGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#VariantGetResponse">VariantGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

## RegionalTieredCache

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#RegionalTieredCache">RegionalTieredCache</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#RegionalTieredCacheEditResponse">RegionalTieredCacheEditResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#RegionalTieredCacheGetResponse">RegionalTieredCacheGetResponse</a>

Methods:

- <code title="patch /zones/{zone_id}/cache/regional_tiered_cache">client.Cache.RegionalTieredCache.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#RegionalTieredCacheService.Edit">Edit</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#RegionalTieredCacheEditParams">RegionalTieredCacheEditParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#RegionalTieredCacheEditResponse">RegionalTieredCacheEditResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/cache/regional_tiered_cache">client.Cache.RegionalTieredCache.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#RegionalTieredCacheService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#RegionalTieredCacheGetParams">RegionalTieredCacheGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache">cache</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/cache#RegionalTieredCacheGetResponse">RegionalTieredCacheGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
