diff options
Diffstat (limited to 'include/InMemoryBackend.h')
| -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 |
