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

1 Answer

0 votes
by

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

Syntax

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

Example

In the given example, we use javatpoint as the key and set value Memcached in it with an expiration time of 900 seconds.

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

Related questions

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