diff options
| author | Marcos Magueta <maguetamarcos@gmail.com> | 2026-06-05 21:40:44 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-05 21:40:44 -0300 |
| commit | 5174fc25698cff33b03b5746bf1742e417988f7d (patch) | |
| tree | 232a3acdd9b458de481dbd5cbde889505168c8e8 /include/InMemoryBackend.h | |
| parent | 85ed897de3676af866cc619dc700025820c02201 (diff) | |
| download | RNT-5174fc25698cff33b03b5746bf1742e417988f7d.tar.gz RNT-5174fc25698cff33b03b5746bf1742e417988f7d.zip | |
Project C interface, reroute FOL plan enums & format
Diffstat (limited to '')
| -rw-r--r-- | include/InMemoryBackend.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/include/InMemoryBackend.h b/include/InMemoryBackend.h index 1a7d3a7..b66d355 100644 --- a/include/InMemoryBackend.h +++ b/include/InMemoryBackend.h @@ -19,15 +19,13 @@ * Relation membership is tracked by the Merkle class, not this backend. */ -namespace nt -{ - class InMemoryBackend : public IStorageBackend - { - public: +namespace nt { + class InMemoryBackend : public IStorageBackend { + public: std::string Put(std::vector<uint8_t> value) override; std::optional<std::vector<uint8_t>> Get(const std::string& hash) override; - private: + private: std::unordered_map<std::string, std::vector<uint8_t>> kv_; }; -} +} // namespace nt |
