代潇瑞博客

append 命令/方法/函数

Description

Append specified string to the string stored in specified key.

添加指定的字符串到指定的字符串KEY。


Parameters

Key Value


Return value

INTEGER: Size of the value after the append

返回添加后KEY的SIZE


Example

$redis->set('key', 'value1');

$redis->append('key', 'value2'); /* 12 */

$redis->get('key'); /* 'value1value2' */

【相关命令】

触屏版 | 电脑版

Copyright © 2013 代潇瑞博客手机版

QQ: 446673330

粤ICP备13071969号-1