代潇瑞博客

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);

【相关命令】

触屏版 | 电脑版

Copyright © 2013 代潇瑞博客手机版

QQ: 446673330

粤ICP备13071969号-1