Memcached connection


Release date:2024-03-18 Update date:2024-03-18 Editor:admin View counts:70

Label:

Memcached connection

We can pass. telnet Command and specify the host ip and port to connect Memcached Service.

Grammar

telnet HOST PORT

In the command HOST And PORT To run Memcached The IP and port of the service.

Example

The following example shows how to connect to the Memcached Service and execute a simple set And get Orders.

For this example Memcached The host of the service is 127.0.0.1 (native) and the port is 11211.

telnet 127.0.0.1 11211

Trying 127.0.0.1...

Connected to 127.0.0.1.

Escape character is '^]'.

set foo 0 0 3                                                   Save Command

bar                                                             data

STORED                                                          result

get foo                                                         Obtain command

VALUE foo 0 3                                                   data

bar                                                             data

END                                                             end line

quit                                                            exit

Powered by TorCMS (https://github.com/bukun/TorCMS).