memcache(3) 1.2.0 released...

John McCaskey johnm at klir.com
Mon Jan 10 18:00:37 PST 2005


On Sun, 2005-01-09 at 17:45 -0800, Sean Chittenden wrote:
> Howdy.  Thought a few folks would be interested in the 1.2.0 release.
> 
> 	http://people.FreeBSD.org/~seanc/libmemcache/
> 
> There are a few significant changes that people may want to note.
> 
> *) Hashing of keys is only performed when there is more than one live 
> server.

Wow, I (someone) should have thought about this one sooner :)
Unfortunately I'm locked in at the version I'm using for now, as we are
already in testing for the application.  But I'm looking forward to
expanding our memcache usage significantly in coming releases.

> 
> *) As a result of the above, hashing of keys is no longer done at 
> mc[m]?_req_add() time.  If requests are being prepared ahead of time to 
> avoid latency, one can do 'res = mc[m]?_req_add(req, key, keylen); 
> res->hash = mc[m]?_hash_key(key, keylen);' and then an mc[m]?_get() 
> when needed.
> 
> *) Add mc_server_add4() which takes a 'hostname:port' argument.
> 
> *) Added an internal strdup(3) function that uses the atomic malloc 
> function if one is provided (otherwise the normal malloc).
> 
> *) Added various functions and macros for version detection.  See the 
> ChangeLog for details.
> 
> The API changed slightly and the ABI most certainly did, but thee 
> library version has been bumped to 1.2 as well to account for this.  If 
> anyone has any problems, please let me know.
> 
> At this point I'm going to begin working in the direction of the 
> scatter/gather method of performing multi-get requests.  This effort 
> will be the main focus of the 1.3 version unless someone else comes up 
> with some feature requests they'd like to have added.  -sc
> 

This all sounds great.  I've been considering on and off making a php
module that wraps your work, but so far the PECL one from Anthony Dvogal
is meeting our needs.  libmemcache is significantly faster, but its very
hard for me to gauge whether this is just due to the php overhead that
would also be present in a wrapper for libmemcache or not.  At the same
time, I'm need to get some practice writing php modules anyway, so I'll
probably do it pretty soon (maybe this weekend).

-- 
John A. McCaskey
Software Development Engineer
Klir Technologies, Inc.
johnm at klir.com
206.902.2027


More information about the memcached mailing list