memcached in freebsd

Brion Vibber
Sun, 10 Aug 2003 02:42:38 -0700

Evan Martin wrote:

> On Sunday, August 10, 2003, at 12:17 AM, Brion Vibber wrote:
>> On my FreeBSD 5.1 box I managed to install the above-linked port of 
>> memcached 1.1.6. It compiles, installs, and runs, and seems to be 
>> willing to _store_ items, but when I try to _retrieve_ something it 
>> fails:
>>  _load_items(): Failed to recieve valid header!
> The memcache protocol works over telnet, which is nice for debugging.
> Try something like: 

On further investigation, I note two things:

a) The "_load_items(): Failed to recieve valid header!" is what I get
anytime I ask for data that isn't available, and seems to be normal.

b) It _does_ retrieve data back from the BSD box if I don't set an
expiration time when doing sets/adds.

I had been using an expiration time of 3600, which should be one hour if
I'm reading the docs right. ...

D'oh! Looks like relative expiration times are a new feature of
1.1.7/1.1.8, and 1.1.6 expects either 0 or a full Unix timestamp. Okay,
if I set it to 3600 + time(), then it gives me my data back from both boxen.

Hoo-rah... at least it seems to be working on FreeBSD, it's just a
version behind. :)

-- brion vibber (brion @