Google News
logo
Memcached - Interview Questions
How to connect Memcached server with telnet command?
By using telnet hostname portNumber command, you can connect Memcached server with telnet command.

Syntax :
$telnet HOST PORT  ?

Example : The given example shows that how to connect to a Memcached server and execute a simple set and get command. Let's assume that the server of Memcached is running on host 127.0.0.1 and port 11211.
$telnet 127.0.0.1 11211  
Trying 127.0.0.1...  
Connected to 127.0.0.1.  
Escape character is '^]'.  
// store data and get that data from server  
set javatpoint 0 900 9  
memcached  
STORED  
get javatpoint  
VALUE javatpoint 0 9  
memcached  
END  ?
Advertisement