User Tools

Site Tools


memcache_invetigation

This is an old revision of the document!


Configuration file

/etc/sysconfig/memcached

Logging

PORT="11211"
USER="memcached"
MAXCONN="1024"
CACHESIZE="64"
OPTIONS="-vvv >> /var/log/memcached/log"

Adding a key/value

[root@cloud-server-03 ~]# printf "set mykey 0 60 4\r\ndata\r\n" |\
> nc localhost 11211
STORED

[root@cloud-server-03 ~]# memcached-tool localhost:11211
  #  Item_Size  Max_age   Pages   Count   Full?  Evicted Evict_Time OOM
  1      96B        27s       1       1     yes        0        0    0

Getting the key

Getting they key:

[root@cloud-server-03 ~]# telnet localhost 11211
Trying ::1...
Connected to localhost.
Escape character is '^]'.
get mykey
VALUE mykey 0 4
data
END

memcache_invetigation.1505122587.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki