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 […]
Author Archives: user
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 […]
Memcached – Connection To connect to a Memcached server, you need to use the telnet command on HOST and PORT names. Syntax The basic syntax of Memcached telnet command is as shown below − $telnet HOST PORT Here, HOST and PORT are machine IP and port number respectively, on which the Memcached server is executing. […]