By using add command, you can add value in the key.
Syntax
- add key flags exptime bytes [noreply]
- value
Example
In the given example, we use "key" as the key and add the value Memcached in it with 900 seconds expiration time.
- add key 0 900 9
- memcached
- STORED
- get key
- VALUE key 0 9
- Memcached
- END