summaryrefslogtreecommitdiff
path: root/include/apr_memcache.h
diff options
context:
space:
mode:
authorpquerna <pquerna@13f79535-47bb-0310-9956-ffa450edef68>2007-06-08 05:52:21 +0000
committerpquerna <pquerna@13f79535-47bb-0310-9956-ffa450edef68>2007-06-08 05:52:21 +0000
commitde6ffffb4c67d7b6866d678117334aec3119e4e9 (patch)
tree65e0fad3649cb9daa7710a79ed25a0eee4c2d976 /include/apr_memcache.h
parent04cd554d83659d27d443e0db7971c4b43c53f667 (diff)
downloadlibapr-util-de6ffffb4c67d7b6866d678117334aec3119e4e9.tar.gz
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
Diffstat (limited to 'include/apr_memcache.h')
-rw-r--r--include/apr_memcache.h10
1 files changed, 10 insertions, 0 deletions
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);