The following log output on memcached 1.2.2:
<8 new client connection
<8 set mynamespace:views/show 0 47 20499
>8 STORED
can be interpreted as, expires_in = 47 seconds and size = 20499.
How do we interpret the following memcached 1.4.7 log output for expires_in and size?
<40 GET views/show
>40 Writing an error: No开发者_Go百科t found
>40 Writing bin response:
>40 0x81 0x00 0x00 0x00
>40 0x00 0x00 0x00 0x01
>40 0x00 0x00 0x00 0x09
>40 0x00 0x00 0x00 0x00
>40 0x00 0x00 0x00 0x00
>40 0x00 0x00 0x00 0x00
<40 Read binary protocol data:
<40 0x80 0x01 0x00 0x38
<40 0x08 0x00 0x00 0x00
<40 0x00 0x00 0x00 0x46
<40 0x00 0x00 0x00 0x00
<40 0x00 0x00 0x00 0x00
<40 0x00 0x00 0x00 0x00
<40 SET views/show Value len is 6
>40 Writing bin response:
>40 0x81 0x01 0x00 0x00
>40 0x00 0x00 0x00 0x00
>40 0x00 0x00 0x00 0x00
>40 0x00 0x00 0x00 0x00
>40 0x00 0x00 0x00 0x00
>40 0x00 0x00 0x00 0x01
https://github.com/memcached/memcached/blob/master/memcached.c
search for "settings.verbose" Or you can search for "Writing bin response" and it will show you the actual code.
Memcache++ open source code!
精彩评论