多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## 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` ```