🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## rename, renameKey ##### *Description* Renames a key. 重命名一个KEY ##### *Parameters* *STRING*: srckey, the key to rename. STRING:源KEY,需要改名的KEY *STRING*: dstkey, the new name for the key. STRING:目标KEY,KEY的新名字 ##### *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->set('x', '42'); $redis->rename('x', 'y'); $redis->get('y'); // → 42 $redis->get('x'); // → `FALSE` ```