User Tools

Site Tools


memcache_invetigation

PHPMemcachedAdmin

Configuration file

/etc/sysconfig/memcached

Logging

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

Adding a key/value

set KEY META_DATA EXPIRY_TIME LENGTH_IN_BYTES

# telnet localhost 11211
set Test 0 100 10
JournalDev
STORED

# printf "set mykey 0 60 4\r\ndata\r\n" |\ > nc localhost 11211
STORED

# 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:

# telnet localhost 11211
Trying ::1...
Connected to localhost.
Escape character is '^]'.
get mykey
VALUE mykey 0 4
data
END

memcache_invetigation.txt · Last modified: 2024/05/23 07:26 by 127.0.0.1

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