AOSharedServiceLibrary
|
Key Value Store. More...
#include <kv_store.h>
Public Member Functions | |
bool | opt_exist (std::string key) |
Does a key exist? | |
StringBuffer * | get_opt (std::string key) |
Get an option by key. | |
void | get_opt (std::string key, StringBuffer &val) |
Get an option by key. | |
std::unordered_map< std::string, std::string > | get_opts () |
void | add_opt (const std::string &key, std::string value) |
Add an option. | |
void | set_opt (std::string &key, std::string &value) |
Set an option. | |
Public Member Functions inherited from AOSSL::KeyValueStoreInterface | |
virtual void | load_config ()=0 |
Re-load configuration. | |
Key Value Store.
A Key-Value store accesses configuration values by keys Interface which requires implementation