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 replace command is used to replace an existingkey (key) value (data value).
If the key does not exist, replace fail, and you will get a responseNOT_STORED.
The basic syntax replace command is as follows:
replace key flags exptime bytes [noreply] value
Parameters are as follows:
We set the following examples:
The following examples keys we use 'mykey' and store the corresponding value data_value. After the execution we replace the same key value 'some_other_value'.
add mykey 0 900 10 data_value STORED get mykey VALUE mykey 0 10 data_value END replace mykey 0 900 16 some_other_value get mykey VALUE mykey 0 16 some_other_value END
If the data is added successfully, the output:
STORED
Output information Description: