Hi,

I am trying to implement a memcached client based on Java for improving
performance.

When I tested verbosity, touch and gat command with binary protocol, it
seemed that they didn't work correctly.

* Memcached v1.4.10
1. verbosity
When I sent the request to the server, the server returned unknown command
error.(Text protocol works fine)
(I made the request based on
http://code.google.com/p/memcached/wiki/BinaryProtocolRevamped#Verbosity )

Here are headers which the server received and sent to the client.
<22 Read binary protocol data:
<22    0x80 0x1b 0x00 0x00
<22    0x04 0x00 0x00 0x00
<22    0x00 0x00 0x00 0x04
<22    0x00 0x00 0x00 0x00
<22    0x00 0x00 0x00 0x00
<22    0x00 0x00 0x00 0x00
>22 Writing an error: Unknown command
>22 Writing bin response:
>22   0x81 0x1b 0x00 0x00
>22   0x00 0x00 0x00 0x81
>22   0x00 0x00 0x00 0x0f
>22   0x00 0x00 0x00 0x00
>22   0x00 0x00 0x00 0x00
>22   0x00 0x00 0x00 0x00

2. touch and gat
When I sent touch and gat requests with expiration to the server, the server
returned No_Error status.
But it seemed that the new expiration was not applied.

I also read 
http://code.google.com/p/memcached/wiki/BinaryProtocolRevamped#Touch,_GAT_an
d_GATQ .

If I am missing any issues or misunderstanding these protocols, please
advice me and let me know.

Thanks!

PS) When I used xmemcached java client, results were also same to my client.

Regards,
Bongjae Chang



Reply via email to