0 votes
in MemCached by
How to delete the key?

1 Answer

0 votes
by

By using delete command, you can delete the key.

Syntax

  1. delete key [noreply]  

Example

In the given example, we use javatpoint as a key and add the value Memcached in it with 900 seconds expiration time. After this, it deletes the stored key.

  1. set javatpoint 0 900 9  
  2. memcached  
  3. STORED  
  4. get javatpoint  
  5. VALUE javatpoint 0 9  
  6. memcached  
  7. END  
  8. delete javatpoint  
  9. DELETED  
  10. get javatpoint  
  11. END  
  12. delete javatpoint  
  13. NOT_FOUND  

Related questions

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