By using telnet hostname portNumber command, you can connect Memcached server with telnet command.
Syntax
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 '^]'.
-
- set javatpoint 0 900 9
- memcached
- STORED
- get javatpoint
- VALUE javatpoint 0 9
- memcached
- END