KVStore
Include fastly/kv_store.h to use this class.
Methods
build_erase
View sourceCreate a buildable erase request for the KV Store. When the desired configuration has been set, execute the erase and wait for the response.
Returns
build_insert
View sourceCreate a buildable insert request for the KV Store. When the desired configuration has been set, execute the insert and wait for the response.
Returns
build_list
View sourceCreate a buildable list request for the KV Store. When the desired configuration has been set, execute the list and wait for the response.
Returns
insert
View sourceInsert a value into the KV Store.
If the store already contained a value for this key, it will be overwritten. Returns an error if the value cannot be inserted.
Parameters
- key: std::string_view
- value: Body
Returns
Opens a key-value store with the given name.
Returns an error if the store cannot be opened.
Parameters
- name: std::string_view
Returns
pending_erase_wait
View sourceexpected fastly::kv_store::KVStore::pending_erase_wait(PendingEraseHandle pending_erase_handle) constErase a value in the KV Store.
Parameters
- pending_erase_handle: PendingEraseHandle
Returns
pending_insert_wait
View sourceexpected fastly::kv_store::KVStore::pending_insert_wait(PendingInsertHandle pending_insert_handle) constInsert a value in the KV Store.
Parameters
- pending_insert_handle: PendingInsertHandle
Returns
pending_list_wait
View sourceexpected<ListPage> fastly::kv_store::KVStore::pending_list_wait(PendingListHandle pending_request_handle) constWait on a pending list operation.
Parameters
- pending_request_handle: PendingListHandle
Returns
pending_lookup_wait
View sourceexpected<LookupResponse> fastly::kv_store::KVStore::pending_lookup_wait(PendingLookupHandle pending_request_handle) constLook up a value in the KV Store.
Parameters
- pending_request_handle: PendingLookupHandle
Returns