0 votes
in MemCached by
How to connect Memcached server with telnet command?

1 Answer

0 votes
by

By using telnet hostname portNumber command, you can connect Memcached server with telnet command.

Syntax

  1. $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.

  1. $telnet 127.0.0.1 11211  
  2. Trying 127.0.0.1...  
  3. Connected to 127.0.0.1.  
  4. Escape character is '^]'.  
  5. // store data and get that data from server  
  6. set javatpoint 0 900 9  
  7. memcached  
  8. STORED  
  9. get javatpoint  
  10. VALUE javatpoint 0 9  
  11. memcached  
  12. END  

Related questions

0 votes
asked Jul 29, 2023 in MemCached by sharadyadav1986
0 votes
asked Jun 9, 2020 in MemCached by DavidAnderson
...