Ajout netcat

This commit is contained in:
whirigoyen 2024-02-12 12:06:04 +01:00
parent 40a24a08c7
commit f2bef52347

View file

@ -58,22 +58,35 @@ $myValue = $memcache->get('my_value');
?>
~~~
## Test en telnet
## Test avec telnet
~~~
$ telnet localhost 11211
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
set foo 0 100 3
bar
STORED
get foo
VALUE foo 0 2
hi
VALUE bar 0 3
END
stats
STAT pid 8861
(etc)
~~~
## Test avec netcat
En non-interactif, utile pour mettre dans un script :
~~~
echo -e "set check_memcached 0 100 5\r\ncheck\r\nquit" | nc localhost 11211
echo -e "get check_memcached\r\nquit" | nc localhost 11211
~~~
## Administration