Creates or updates an existing entry at the given unique key.
This may deconstruct the given data and only persists a partial object.