redis-cli MIGRATE 10.0.0.5 6379 user:1 0 5000

Category: Databases & SQL

redis-cli MIGRATE 10.0.0.5 6379 user:1 0 5000

Move a key to another Redis server

Transfers the key atomically to the host and port given, database 0, with 5000 milliseconds as the connection timeout. The key is deleted from the source on success. The destination must be reachable and must not already hold the key.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.