9#include <unordered_map>
25 std::string
Put(std::vector<uint8_t> value)
override;
26 std::optional<std::vector<uint8_t>>
Get(
const std::string& hash)
override;
29 std::unordered_map<std::string, std::vector<uint8_t>> kv_;
Defines symbol visibility for the Relational NT public API.
Abstract KV storage backend consumed by CursorManager and Merkle.
Contract between CursorManager / Merkle and a physical storage engine.
Definition IStorageBackend.h:31
Definition InMemoryBackend.h:23
std::string Put(std::vector< uint8_t > value) override
Stores a serialized value and returns its SHA256 hex hash.
Definition InMemoryBackend.cpp:6
std::optional< std::vector< uint8_t > > Get(const std::string &hash) override
Retrieves bytes by their SHA256 hex hash.
Definition InMemoryBackend.cpp:12
Contains the Relational NT runtime managers and API facade.