write
Writes a message to the storage.
Parameters
message
a message to write
Writes a record into the storage.
Rewrites it if a record with this ID already exists in the storage.
Parameters
id
the ID for the record
record
the record to store
Throws
if the storage is closed