X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=docs%2Fsource%2Flibmemcached%2Fmemcached_generate_hash_value.rst;h=9c84be7e0f4b286f3c7403ca076a6ea0051b1053;hb=90bb4fb5810353d35ce5575caa3b0a2139e3f4a1;hp=2e151a5cdb872e03485f2dd7f6f0a929a5947b78;hpb=28c4d79e109e11d7d2a9f3189de57da28302ec68;p=m6w6%2Flibmemcached diff --git a/docs/source/libmemcached/memcached_generate_hash_value.rst b/docs/source/libmemcached/memcached_generate_hash_value.rst index 2e151a5c..9c84be7e 100644 --- a/docs/source/libmemcached/memcached_generate_hash_value.rst +++ b/docs/source/libmemcached/memcached_generate_hash_value.rst @@ -1,4 +1,3 @@ -=============================== Generating hash values directly =============================== @@ -6,16 +5,13 @@ Generating hash values directly Hash a key value - --------- SYNOPSIS -------- - #include .. type:: memcached_hash_t - + .. function:: uint32_t memcached_generate_hash_value (const char *key, size_t key_length, memcached_hash_t hash_algorithm) .. function:: uint32_t memcached_generate_hash (memcached_st *ptr, const char *key, size_t key_length) @@ -42,15 +38,11 @@ SYNOPSIS .. type:: MEMCACHED_HASH_MURMUR3 - Compile and link with -lmemcachedutil -lmemcached - ------------ DESCRIPTION ----------- - :func:`memcached_generate_hash_value` allows you to hash a key using one of the hash functions defined in the library. This method is provided for the convenience of higher-level language bindings and is not necessary @@ -66,19 +58,13 @@ defaults of :type:`memcached_st`. As of version 0.36 all hash methods have been placed into the library libhashkit(3) which is linked with libmemcached(3). For more information please see its documentation. - ------- RETURN ------ - A 32-bit integer which is the result of hashing the given key. For 64-bit hash algorithms, only the least-significant 32 bits are returned. - - --------- SEE ALSO --------