put
Inserts or updates a key-value pair in the LevelDB database.
Parameters
key
The key associated with the value.
value
The value to be stored.
sync
Flag indicating whether to perform a synchronous write, that is to wait for the write to be persisted to disk before returning.