45 static bool Put(std::string_view key, std::string_view value);
51 static bool Delete(std::string_view key);
60 static std::optional<std::string>
Get(std::string_view key);
69 static std::vector<std::pair<std::string, std::string>>
GetWithStart(
70 std::string_view start);
Lightweight key-value database to store system-wide parameters.
static std::optional< std::string > Get(std::string_view key)
Get value of a key.
static bool Put(std::string_view key, std::string_view value)
Store {key, value} to DB.
static std::vector< std::pair< std::string, std::string > > GetWithStart(std::string_view start)
Get the tuple whose key starts with start.
static bool Delete(std::string_view key)
Delete a key.