WriteOptions

Structin corecompute-sdk-cpp 0.7.0View source

Include fastly/cache/core.h to use this struct.

Options for cache write operations (insert/update).

Constructor

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

Parameters

max_age: std::chrono::nanoseconds

Fields

max_age

std::chrono::nanosecondsView source

request_headers

std::optional<detail::RequestHandle>View source

vary_rule

std::optional<std::string>View source

initial_age

std::optional<std::chrono::nanoseconds>View source

stale_while_revalidate

std::optional<std::chrono::nanoseconds>View source

surrogate_keys

std::optional<std::string>View source

length

std::optional<std::uint64_t>View source

user_metadata

std::optional<std::vector<std::uint8_t>>View source

sensitive_data

boolView source

Default: = false

edge_max_age

std::optional<std::chrono::nanoseconds>View source

service

std::optional<std::string>View source