Fastly Compute C++ SDK
Loading...
Searching...
No Matches
fastly::cache::core::WriteOptions Struct Reference

Options for cache write operations (insert/update). More...

#include <core.h>

Public Member Functions

 WriteOptions (std::chrono::nanoseconds max_age)

Public Attributes

std::chrono::nanoseconds max_age
std::optional< detail::RequestHandlerequest_headers
std::optional< std::string > vary_rule
std::optional< std::chrono::nanoseconds > initial_age
std::optional< std::chrono::nanoseconds > stale_while_revalidate
std::optional< std::string > surrogate_keys
std::optional< std::uint64_t > length
std::optional< std::vector< std::uint8_t > > user_metadata
bool sensitive_data = false
std::optional< std::chrono::nanoseconds > edge_max_age
std::optional< std::string > service

Detailed Description

Options for cache write operations (insert/update).

Constructor & Destructor Documentation

◆ WriteOptions()

fastly::cache::core::WriteOptions::WriteOptions ( std::chrono::nanoseconds max_age)
inlineexplicit

Member Data Documentation

◆ edge_max_age

std::optional<std::chrono::nanoseconds> fastly::cache::core::WriteOptions::edge_max_age

◆ initial_age

std::optional<std::chrono::nanoseconds> fastly::cache::core::WriteOptions::initial_age

◆ length

std::optional<std::uint64_t> fastly::cache::core::WriteOptions::length

◆ max_age

std::chrono::nanoseconds fastly::cache::core::WriteOptions::max_age

◆ request_headers

std::optional<detail::RequestHandle> fastly::cache::core::WriteOptions::request_headers

◆ sensitive_data

bool fastly::cache::core::WriteOptions::sensitive_data = false

◆ service

std::optional<std::string> fastly::cache::core::WriteOptions::service

◆ stale_while_revalidate

std::optional<std::chrono::nanoseconds> fastly::cache::core::WriteOptions::stale_while_revalidate

◆ surrogate_keys

std::optional<std::string> fastly::cache::core::WriteOptions::surrogate_keys

◆ user_metadata

std::optional<std::vector<std::uint8_t> > fastly::cache::core::WriteOptions::user_metadata

◆ vary_rule

std::optional<std::string> fastly::cache::core::WriteOptions::vary_rule

The documentation for this struct was generated from the following file: