logo       

Re: Does key length require storage?: msg#00071

web.cache.memcached

Subject: Re: Does key length require storage?

Xing, et. al:

> > Why isn't this documented anywhere.  Should we be recommending that
> > people use short keys when possible?

It *IS* documented. Further, there was a discussion on this list earlier to
use md5 in order to get around the key-length limit.

From the Protocol Docs, and, I'm sure, elsewhere:

==================
Keys
----

Data stored by memcached is identified with the help of a key. A key
is a text string which should uniquely identify the data for clients
that are interested in storing and retrieving it. Currently the
length limit of a key is set at 250 characters (of course, normally
clients wouldn't need to use such long keys); the key must not include
control characters or whitespace.
=====================

--
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise