apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Querna <c...@force-elite.com>
Subject [PATCH] APR Memcache Multi-Get Support
Date Thu, 03 Aug 2006 23:25:36 GMT
Attached is a patch to add support for multiple parallel fetching of
keys from a memcache cluster.  It enables fetching of thousands of
values from multiple memcache nodes without any significant slow downs
for adding more nodes or keys.

The basic logic behind the main function, apr_memcache_multgetp, is
currently pounding away with thousands of concurrent queries per second,
without any problem.  I wouldn't call the function itself 'pretty', but
I believe the logic embedded in it is correct.

[[[
Add memcache multi-get support to apr_memcache.

* include/apr_memcache.h
    Add _value_t structure for holding an individual value from
    memcached.
    Add new functions: apr_memcache_add_multget_key,
    apr_memcache_multgetp.

* memcache/apr_memcache.c:
    Add a local baton structure for associating severs to queries.
    Add new functions: apr_memcache_add_multget_key,
    mget_conn_result, apr_memcache_multgetp

Submitted By: Rob Emanuele <rob.emanuele ask.com>, Paul Querna
<paul.querna ask.com>
]]]

Mime
View raw message