CacheEntry

Classin simplecompute-sdk-cpp 0.7.0View source

Include fastly/cache/simple.h to use this class.

The return type of the closure provided to getorset_with().

Constructor

fastly::cache::simple::CacheEntry::CacheEntry(http::Body val, std::chrono::nanoseconds ttl)

Parameters

val: http::Body
ttl: std::chrono::nanoseconds

Methods

std::chrono::nanoseconds fastly::cache::simple::CacheEntry::ttl() const

Returns

std::chrono::nanoseconds

value

Overload 1 of 2

http::Body & fastly::cache::simple::CacheEntry::value()
View source

Returns

http::Body &

Overload 2 of 2

const http::Body & fastly::cache::simple::CacheEntry::value() const
View source

Returns

const http::Body &