0 votes
in MemCached by
How to append the value of the key?

1 Answer

0 votes
by

By using append command, you can append the value of the key.

Syntax

  1. append key flags exptime bytes [noreply]  
  2. 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.

  1. append javatpoint 0 900 5  
  2. redis  
  3. NOT_STORED  
  4. set javatpoint 0 900 9  
  5. memcached  
  6. STORED  
  7. get javatpoint  
  8. VALUE javatpoint 0 14  
  9. memcached  
  10. END  
  11. append javatpoint 0 900 5  
  12. redis  
  13. STORED  
  14. get javatpoint  
  15. VALUE javatpoint 0 14  
  16. memcachedredis  
  17. END  

Related questions

0 votes
asked Jun 15, 2022 in MemCached by sharadyadav1986
0 votes
asked Jul 29, 2023 in MemCached by sharadyadav1986
...