migrate

PHP Redis

migrate

Description

Migrates a key to a different Redis instance.

迁移一个KEY岛不同的REIDS实例。

Parameters

host string. The destination host
port integer. The TCP port to connect to.
key string. The key to migrate.
destination-db integer. The target DB.
timeout integer. The maximum amount of time given to this transfer.

Examples
$redis->migrate('backup', 6379, 'foo', 0, 3600);