Data Migration

Difficulty: Intermediate

Question

How do you move a key from one Redis instance to another?

Answer

Use the `MIGRATE` command, which handles the serialization, transfer, and deletion (optional) in a single atomic-feeling operation.

Concepts covered

MIGRATE, DUMP/RESTORE