Saturday 11 April 2015

Appends to string


Syntax
APPEND key value.

Returns
Reurns the length of string after append operation.

'APPEND' command appends the value at the end of the string. If string is empty, then new string is created with given value.

127.0.0.1:6379> append welcome "Hello" 
(integer) 5 
127.0.0.1:6379> get welcome 
"Hello" 
127.0.0.1:6379> append welcome " Redis" 
(integer) 11 
127.0.0.1:6379> get welcome 
"Hello Redis" 

Prevoius                                                 Next                                                 Home

No comments:

Post a Comment