[acool@acool ~]$ telnet localhost 11211
Trying ::1...
Connected to localhost.
Escape character is '^]'.
stats
...
stats slabs
...
stats items
...
stats cachedump 15 0
ITEM memc.sess.key.tb7mgf58nb0pnn7ag840q5r5k6 [1875 b; 1467144640 s]
ITEM memc.sess.key.9nt5nrcptemi2m0d9g3k95vl76 [1911 b; 1467144640 s]
ITEM memc.sess.key.5k8d2qpko4lg4rn6fue1ces0j6 [230 b; 1467144640 s]
...
get memc.sess.key.5k8d2qpko4lg4rn6fue1ces0j6
...
delete memc.sess.key.5k8d2qpko4lg4rn6fue1ces0j6
DELETED
set MyJson 0 100 16
{"name":"angel"}
STORED
flush_all
OK
quit
[acool@acool ~]$
Also see memcached-tool utility.
//flush memcached
echo 'flush_all' | nc localhost 11211//or:
echo 'flush_all' | netcat localhost 11211
/*****Telnet Examples******/
//connect to memcached
telnet localhost 11211
//storing data in memcached server, syntax: set KEY META_DATA EXPIRY_TIME LENGTH_IN_BYTES
(LENGHT_IN_BYTES must match content!!!)
set Test 0 100 16
Angel is Testing
//retrieve data
get Test
//getting stats
stats
//stats shortcut
[webmaster@dev ~]$ echo stats | nc localhost 11211
/*****PHP Examples******/
Coming.... hoping sooner rather than later ...but coming, for sure coming.
10/4/2013 ...there:
http://angelcool.net/sphpblog/comments. ... 004-174818
[ view entry ] ( 1966 views ) | print article
<<First <Back | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Next> Last>>