0 votes
in MemCached by
How to add value in the key?

1 Answer

0 votes
by

By using add command, you can add value in the key.

Syntax

  1. add key flags exptime bytes [noreply]  
  2. value  

Example

In the given example, we use "key" as the key and add the value Memcached in it with 900 seconds expiration time.

  1. add key 0 900 9  
  2. memcached  
  3. STORED  
  4. get key  
  5. VALUE key 0 9  
  6. Memcached  
  7. END  

Related questions

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