ListBuilder

Classin kv_storecompute-sdk-cpp 0.7.0View source

Include fastly/kv_store.h to use this class.

Methods

ListBuilder fastly::kv_store::ListBuilder::cursor(const std::string &cursor) &&

Change the cursor of the request.

Parameters

cursor: const std::string &

Returns

eventual_consistency

View source
ListBuilder fastly::kv_store::ListBuilder::eventual_consistency() &&

Rather than read data from the primary data source, which is slower but strongly consistent (strong, the default), instead read a local copy if available, which offers higher speed and may be a few seconds out of date (eventual).

Returns

expected<ListPage> fastly::kv_store::ListBuilder::execute() &&

Initiate and wait on a list of values in the KV Store.

Returns

execute_async

View source
expected<PendingListHandle> fastly::kv_store::ListBuilder::execute_async() const

Initiate async list of values in the KV Store.

Returns

ListResponse fastly::kv_store::ListBuilder::iter() &&

Produce a new ListResponse, which can be used as an iterator for chunked list operations.

Returns

ListBuilder fastly::kv_store::ListBuilder::limit(std::uint32_t limit) &&

Set the maximum number of items included in the response.

Parameters

limit: std::uint32_t

Returns

ListBuilder fastly::kv_store::ListBuilder::prefix(const std::string &prefix) &&

Set the prefix match for items to include in the resultset.

Parameters

prefix: const std::string &

Returns