C++ edjLibrary SDK
Loading...
Searching...
No Matches
Namespaces | Functions
kv.hpp File Reference
#include <cstdint>
#include <string>
#include <vector>
#include "error.hpp"

Go to the source code of this file.

Namespaces

namespace  edjx
 
namespace  edjx::kv
 APIs for interacting with EDJX KV-Store.
 

Functions

edjx::error::KVError edjx::kv::get (std::vector< uint8_t > &result, const std::string &key)
 Returns the value associated with the provided key. More...
 
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. More...
 
edjx::error::KVError edjx::kv::put (const std::string &key, const std::string &val)
 Inserts a key-value pair into the KV store. More...
 
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. More...
 
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. More...
 
edjx::error::KVError edjx::kv::remove (const std::string &key)
 Removes an entry from the KV store. More...