Google News
logo
Memcached - Interview Questions
How to append the value of the key?
By using append command, you can append the value of the key.

Syntax :
append key flags exptime bytes [noreply]  
value  ?

Example : In the given example, we are trying to add some data in a key that does not exist. Hence, NOT_STORED is returned by Memcached. After this, we set one key and append data into it.
append javatpoint 0 900 5  
redis  
NOT_STORED  
set javatpoint 0 900 9  
memcached  
STORED  
get javatpoint  
VALUE javatpoint 0 14  
memcached  
END  
append javatpoint 0 900 5  
redis  
STORED  
get javatpoint  
VALUE javatpoint 0 14  
memcachedredis  
END  ?
Advertisement