Keys larger that 250

Brian Aker brian at tangent.org
Mon Dec 17 18:17:40 UTC 2007


Hi Tim!

This came up during the hackathon. I suggested that two bytes be  
reserved instead of one in the binary protocol so that it could  
support this. It would still require recompiling the server though.

Cheers,
	-Brian

On Dec 13, 2007, at 3:35 PM, Tim Bunce wrote:

> My 'natural' keys are generally 400 to 900 bytes.
>
> I'd like to avoid having to pay the price of either
> a) creating a good digest (MD5) each time, or
> b) using a poor digest and including a copy of the full key inside the
> value (so it can be checked when fetched).
>
> I was surprised that memcached doesn't offer a command like option to
> support larger key sizes.
>
> The image of the binary protocol[1] shows "keylen 3".  Does than mean
> three bytes will be used to store the keylen in the binary protocol?
>
> Tim.
>
> [1] http://code.sixapart.com/svn/memcached/trunk/server/doc/binary-protocol-plan.jpg

--
_______________________________________________________
Brian "Krow" Aker, brian at tangent.org
Seattle, Washington
http://krow.net/                     <-- Me
http://tangent.org/                <-- Software
http://exploitseattle.com/    <-- Fun
_______________________________________________________
You can't grep a dead tree.




More information about the memcached mailing list