34 std::unordered_map<std::string, std::string>&
writeBatch() {
return m_batch; }
35 size_t size() {
return m_batch.size(); }
38 std::unordered_map<std::string, std::string> m_batch;
50 void commit(std::unique_ptr<WriteBatchFace> _batch)
override;
58 size_t size()
const {
return m_db.size(); }
61 std::unordered_map<std::string, std::string> m_db;
62 mutable Mutex m_mutex;
void insert(Slice _key, Slice _value) override
void commit(std::unique_ptr< WriteBatchFace > _batch) override
void kill(Slice _key) override
void forEach(std::function< bool(Slice, Slice)> _f) const override
void kill(Slice _key) override
std::unordered_map< std::string, std::string > & writeBatch()
bool exists(Slice _key) const override
std::string lookup(Slice _key) const override
std::unique_ptr< WriteBatchFace > createWriteBatch() const override
void insert(Slice _key, Slice _value) override