What is a valid key?

Dustin Sallings dustin at spy.net
Thu Dec 20 17:58:19 UTC 2007


On Dec 20, 2007, at 8:57, a. wrote:

> I haven't seen the server from inside (I only wrote a client), so  
> maybe it's anoob question, but
>
> why do we have to treat the key as a "string"? Cannot be just  
> treated as an array of bytes (whihc cannot contain some values  
> listed earlier)? So we do not have to care about codepages and  
> encodings and such?


	You could do that in the server using the binary protocol, but the  
text protocol wouldn't be able to deal with it.  It'd be good to  
remain limited to the lowest common denominator.

	I don't think anyone *really* cares about being able to use a jpeg as  
a key.

-- 
Dustin Sallings



More information about the memcached mailing list