tutorials

Tech stack collection about Tutorials Point -

View the Project on GitHub

Syntax

Memcached add command is used to set a value to a new key. If the key already exists, then it gives the output NOT_STORED.

The basic syntax of Memcached add command is as shown below

add key flags exptime bytes [noreply] 
value

The keywords in the syntax are as described below −

Example

add new_key 0 900 10
data_value
STORED
get new_key
VALUE new_key 0 10
data_value
END