From de6ffffb4c67d7b6866d678117334aec3119e4e9 Mon Sep 17 00:00:00 2001 From: pquerna Date: Fri, 8 Jun 2007 05:52:21 +0000 Subject: Allow apr_memcache to use a pure CRC32 hash fucntion for server selection. We maintain the _default version, since it is identical to what the Perl memcache Client uses. Fixes PR: 39604 git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@545428 13f79535-47bb-0310-9956-ffa450edef68 --- include/apr_memcache.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/apr_memcache.h') diff --git a/include/apr_memcache.h b/include/apr_memcache.h index 4f90a9a2..f59ca55c 100644 --- a/include/apr_memcache.h +++ b/include/apr_memcache.h @@ -116,6 +116,16 @@ APR_DECLARE(apr_uint32_t) apr_memcache_hash(apr_memcache_t *mc, const char *data, apr_size_t data_len); +/** + * Pure CRC32 Hash. Used by some clients. + */ +APR_DECLARE(apr_uint32_t) apr_memcache_hash_crc32(void *baton, + const char *data, + apr_size_t data_len); + +/** + * hash compatible with the standard Perl Client. + */ APR_DECLARE(apr_uint32_t) apr_memcache_hash_default(void *baton, const char *data, apr_size_t data_len); -- cgit v1.2.1