Fastly Compute C++ SDK
Loading...
Searching...
No Matches
fastly::kv_store::KVStore Class Reference

#include <kv_store.h>

Public Member Functions

expected< LookupResponselookup (std::string_view key) const
LookupBuilder build_lookup () const
expected< LookupResponsepending_lookup_wait (PendingLookupHandle pending_request_handle) const
 Look up a value in the KV Store.
expected insert (std::string_view key, Body value) const
InsertBuilder build_insert () const
expected pending_insert_wait (PendingInsertHandle pending_insert_handle) const
 Insert a value in the KV Store.
expected erase (std::string_view key) const
 Erase a value in the KV Store.
EraseBuilder build_erase () const
expected pending_erase_wait (PendingEraseHandle pending_erase_handle) const
 Erase a value in the KV Store.
expected< ListPagelist () const
 List keys in the KV Store.
ListBuilder build_list () const
expected< ListPagepending_list_wait (PendingListHandle pending_request_handle) const
 Wait on a pending list operation.

Static Public Member Functions

static expected< std::optional< KVStore > > open (std::string_view name)

Member Function Documentation

◆ build_erase()

EraseBuilder fastly::kv_store::KVStore::build_erase ( ) const

Create a buildable erase request for the KV Store. When the desired configuration has been set, execute the erase and wait for the response.

◆ build_insert()

InsertBuilder fastly::kv_store::KVStore::build_insert ( ) const

Create a buildable insert request for the KV Store. When the desired configuration has been set, execute the insert and wait for the response.

◆ build_list()

ListBuilder fastly::kv_store::KVStore::build_list ( ) const

Create a buildable list request for the KV Store. When the desired configuration has been set, execute the list and wait for the response.

◆ build_lookup()

LookupBuilder fastly::kv_store::KVStore::build_lookup ( ) const

◆ erase()

expected fastly::kv_store::KVStore::erase ( std::string_view key) const

Erase a value in the KV Store.

◆ insert()

expected fastly::kv_store::KVStore::insert ( std::string_view key,
Body value ) const

Insert 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.

◆ list()

expected< ListPage > fastly::kv_store::KVStore::list ( ) const

List keys in the KV Store.

◆ lookup()

expected< LookupResponse > fastly::kv_store::KVStore::lookup ( std::string_view key) const

◆ open()

expected< std::optional< KVStore > > fastly::kv_store::KVStore::open ( std::string_view name)
static

Opens a key-value store with the given name.

Returns an error if the store cannot be opened.

◆ pending_erase_wait()

expected fastly::kv_store::KVStore::pending_erase_wait ( PendingEraseHandle pending_erase_handle) const

Erase a value in the KV Store.

◆ pending_insert_wait()

expected fastly::kv_store::KVStore::pending_insert_wait ( PendingInsertHandle pending_insert_handle) const

Insert a value in the KV Store.

◆ pending_list_wait()

expected< ListPage > fastly::kv_store::KVStore::pending_list_wait ( PendingListHandle pending_request_handle) const

Wait on a pending list operation.

◆ pending_lookup_wait()

expected< LookupResponse > fastly::kv_store::KVStore::pending_lookup_wait ( PendingLookupHandle pending_request_handle) const

Look up a value in the KV Store.


The documentation for this class was generated from the following file: