insert

Functionin corecompute-sdk-cpp 0.7.0

Returns an InsertBuilder that will perform a non-transactional cache insertion.

The required max_age argument is the maximal "time to live" for the cache item: the time for which the item will be considered fresh, starting from the start of its history.

Overload 1 of 2

InsertBuilder fastly::cache::core::insert(std::span<const std::uint8_t> key, std::chrono::nanoseconds max_age)
View source

Returns an InsertBuilder that will perform a non-transactional cache insertion.

The required max_age argument is the maximal "time to live" for the cache item: the time for which the item will be considered fresh, starting from the start of its history.

Parameters

key: std::span<const std::uint8_t>
max_age: std::chrono::nanoseconds

Returns

Overload 2 of 2

InsertBuilder fastly::cache::core::insert(std::string_view key, std::chrono::nanoseconds max_age)
View source

Non-transactional cache insert with string key.

Parameters

key: std::string_view
max_age: std::chrono::nanoseconds

Returns