C++ edjLibrary SDK
|
APIs for interacting with EDJX KV-Store. More...
Functions | |
edjx::error::KVError | get (std::vector< uint8_t > &result, const std::string &key) |
Returns the value associated with the provided key. More... | |
edjx::error::KVError | put (const std::string &key, const std::vector< uint8_t > &val) |
Inserts a key-value pair into the KV store. More... | |
edjx::error::KVError | put (const std::string &key, const std::string &val) |
Inserts a key-value pair into the KV store. More... | |
edjx::error::KVError | put (const std::string &key, const std::vector< uint8_t > &val, uint64_t ttl) |
Inserts a key-value pair into the KV store. More... | |
edjx::error::KVError | put (const std::string &key, const std::string &val, uint64_t ttl) |
Inserts a key-value pair into the KV store. More... | |
edjx::error::KVError | remove (const std::string &key) |
Removes an entry from the KV store. More... | |
APIs for interacting with EDJX KV-Store.
edjx::error::KVError edjx::kv::get | ( | std::vector< uint8_t > & | result, |
const std::string & | key | ||
) |
Returns the value associated with the provided key.
result | Returned value associated with the key |
key | Key |
edjx::error::KVError edjx::kv::put | ( | const std::string & | key, |
const std::string & | val | ||
) |
Inserts a key-value pair into the KV store.
key | Key |
val | Value to be inserted for the corresponding key |
edjx::error::KVError edjx::kv::put | ( | const std::string & | key, |
const std::string & | val, | ||
uint64_t | ttl | ||
) |
Inserts a key-value pair into the KV store.
key | Key |
val | Value to be inserted for the corresponding key |
ttl | Time to live (TTL) value in seconds |
edjx::error::KVError edjx::kv::put | ( | const std::string & | key, |
const std::vector< uint8_t > & | val | ||
) |
Inserts a key-value pair into the KV store.
key | Key |
val | Value to be inserted for the corresponding key |
edjx::error::KVError edjx::kv::put | ( | const std::string & | key, |
const std::vector< uint8_t > & | val, | ||
uint64_t | ttl | ||
) |
Inserts a key-value pair into the KV store.
key | Key |
val | Value to be inserted for the corresponding key |
ttl | Time to live (TTL) value in seconds |
edjx::error::KVError edjx::kv::remove | ( | const std::string & | key | ) |
Removes an entry from the KV store.
key | Key |