memcache(3) 1.2.0 released...

Sean Chittenden sean at chittenden.org
Sun Jan 9 17:45:58 PST 2005


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.

*) 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

-- 
Sean Chittenden



More information about the memcached mailing list