save
Saves a user key, replacing any existing key for the same user.
This method stores the provided user key metadata, automatically removing any previously stored key for the same user ID. This ensures that each user has only one active key in the storage system.
The operation is atomic - either the key is successfully saved or the storage remains unchanged if an error occurs.
Parameters
userKey
The UserKey metadata to save