HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Memcached add command is used tovalue (data value) stored in the specified key (key).
If you add the key already exists, the data is not updated, the previous value will remain the same, and you will get a responseNOT_STORED.
The basic syntax add command is as follows:
add key flags exptime bytes [noreply] value
Parameters are as follows:
We set the following examples:
add new_key 0 900 10 data_value STORED get new_key VALUE new_key 0 10 data_value END
If the data is added successfully, the output:
STORED
Output information Description: