Writes a single key‐value pair to the database.

Synopsis

Declared in <dbwrapper.h>

template<
    typename K,
    typename V>
void
Write(
    K const& key,
    V const& value,
    bool fSync = false);

Parameters

Name

Description

key

The key to write.

value

The value to associate with the key.

fSync

If true, flush the write to disk before returning.

Created with MrDocs