Ajout netcat
This commit is contained in:
parent
40a24a08c7
commit
f2bef52347
|
@ -58,22 +58,35 @@ $myValue = $memcache->get('my_value');
|
||||||
?>
|
?>
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
## Test en telnet
|
## Test avec telnet
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
$ telnet localhost 11211
|
$ telnet localhost 11211
|
||||||
Trying 127.0.0.1...
|
Trying 127.0.0.1...
|
||||||
Connected to localhost.
|
Connected to localhost.
|
||||||
Escape character is '^]'.
|
Escape character is '^]'.
|
||||||
|
|
||||||
|
set foo 0 100 3
|
||||||
|
bar
|
||||||
|
STORED
|
||||||
|
|
||||||
get foo
|
get foo
|
||||||
VALUE foo 0 2
|
VALUE bar 0 3
|
||||||
hi
|
|
||||||
END
|
END
|
||||||
|
|
||||||
stats
|
stats
|
||||||
STAT pid 8861
|
STAT pid 8861
|
||||||
(etc)
|
(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
|
## Administration
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue