In Redis, the RESTORE command creates a key associated with a value that is obtained by deserialising the provided serialised value (obtained via the DUMP command).
The serialisation format contains a 64-bit checksum, as well as the RDB version. The RESTORE command checks the RDB version and data checksum. If they don’t match an error is returned.