cache-fu also prepends a namespace; in my case, that's "prodapp:".  That is the 8 chars I refer to.  I should have said this-I'm not so much worried about why python breaks at a larger length as I am that the error occurs at all.  It seems to me that memcache should boot something out of cache and store the small blob I submitted-I could understand the error if I was attempting to store a large blob of data and the cache did not have a slab big enough for it, but surely it can evict a larger object to store a small one, no?
<br><br><div><span class="gmail_quote">On 10/9/07, <b class="gmail_sendername">Eric Hodel</b> &lt;<a href="mailto:drbrain@segment7.net">drbrain@segment7.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Oct 9, 2007, at 11:59 , Matt Knox wrote:<br>&gt; I consistently get an out of memory error when performing&nbsp;&nbsp;&lt; 44<br>&gt; byte (key+data) puts to memcache, but when &#39;put&#39;-ing the same key<br>&gt; with data that is long enough to exceed 44 chars key + data&nbsp;&nbsp;, I
<br>&gt; succeed.&nbsp;&nbsp;I observe this behavior using both the ruby client<br>&gt; (memcache-client 1.5) and the python one (python-memcached),<br>&gt; although the python client seems to break at 59 chars, rather than 44.<br>
<br>memcache-client&#39;s default mode of operation is to Marshal the values<br>you&#39;re storing in memcached.&nbsp;&nbsp;For a String this is 4 bytes of overhead.<br><br>--<br>Poor workers blame their tools. Good workers build better tools. The
<br>best workers get their tools to do the work for them. -- Syndicate Wars<br><br><br></blockquote></div><br><br clear="all"><br>-- <br>(def (eval e l d c)<br>&nbsp;&nbsp;(if&nbsp;&nbsp;(atom? e)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;((ahandler (type e)) e l d c)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(eval (car e) l d 
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(fun (x) <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (evapp x (cdr e) l d c)))))