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
Writes a record into the storage.
Rewrites it if a record with this ID already exists in the storage.
the ID for the record
the record to store
if the storage is closed