Writes the given reference to the refdb.
A refdb implementation must provide this function.
0 on success, otherwise a negative error code.
See Implementation
Writes the given reference to the refdb.
A refdb implementation must provide this function.