memcache_invetigation
This is an old revision of the document!
Configuration file
/etc/sysconfig/memcached
Logging
1 2 3 4 5 |
PORT= "11211" USER= "memcached" MAXCONN= "1024" CACHESIZE= "64" OPTIONS= "-vvv >> /var/log/memcached/log" |
Adding a key/value
1 2 |
# printf "set mykey 0 60 4\r\ndata\r\n" |\ > nc localhost 11211 STORED |
1 2 3 |
# 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:
1 2 3 4 5 6 7 8 |
# telnet localhost 11211 Trying ::1... Connected to localhost. Escape character is '^]' . get mykey VALUE mykey 0 4 data END |
memcache_invetigation.1505122630.txt.gz · Last modified: 2024/05/23 07:26 (external edit)