Memcached – CAS Command CAS stands for Check-And-Set or Compare-And-Swap. Memcached CAS command is used to set the data if it is not updated since last fetch. If the key does not exist in Memcached, then it returns NOT_FOUND. Syntax The basic syntax of Memcached CAS command is as shown below − set key flags […]
Category Archives: memcached
Memcached – Prepend Data Memcached prepend command is used to add some data in an existing key. The data is stored before the existing data of the key. Syntax The basic syntax of Memcached prepend command is as shown below − prepend key flags exptime bytes [noreply] value The keywords in the syntax are as […]
Memcached – Replace Data Memcached replace command is used to replace the value of an existing key. If the key does not exist, then it gives the output NOT_STORED. Syntax The basic syntax of Memcached replace command is as shown below − replace key flags exptime bytes [noreply] value The keywords in the syntax are […]