By using delete command, you can delete the key.
Syntax
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.
- set javatpoint 0 900 9
- memcached
- STORED
- get javatpoint
- VALUE javatpoint 0 9
- memcached
- END
- delete javatpoint
- DELETED
- get javatpoint
- END
- delete javatpoint
- NOT_FOUND