aboutsummaryrefslogtreecommitdiffstats
path: root/include/InMemoryBackend.h
diff options
context:
space:
mode:
authorMarcos Magueta <maguetamarcos@gmail.com>2026-06-05 21:40:44 -0300
committerGitHub <noreply@github.com>2026-06-05 21:40:44 -0300
commit5174fc25698cff33b03b5746bf1742e417988f7d (patch)
tree232a3acdd9b458de481dbd5cbde889505168c8e8 /include/InMemoryBackend.h
parent85ed897de3676af866cc619dc700025820c02201 (diff)
downloadRNT-5174fc25698cff33b03b5746bf1742e417988f7d.tar.gz
RNT-5174fc25698cff33b03b5746bf1742e417988f7d.zip
Project C interface, reroute FOL plan enums & format
Diffstat (limited to 'include/InMemoryBackend.h')
-rw-r--r--include/InMemoryBackend.h12
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