🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## move ##### *Description* Moves a key to a different database. 移动一个KEY-VALUE到另一个DB ##### *Parameters* *Key*: key, the key to move. key:要移动的key *INTEGER*: dbindex, the database number to move the key to. 整数值:要移动到的数据库ID ##### *Return value* *BOOL*: `<span class="calibre12">TRUE</span>` in case of success, `<span class="calibre12">FALSE</span>` in case of failure. ##### *Example* ``` <pre class="calibre16">$redis->select(0); // switch to DB 0 $redis->set('x', '42'); // write 42 to x $redis->move('x', 1); // move to DB 1 $redis->select(1); // switch to DB 1 $redis->get('x'); // will return 42 ``` ##