X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=docs%2Fsource%2Flibmemcached%2Fmemcached_generate_hash_value.rst;h=9d8e00b311e18392fd14772d8cdf894cf8ecca16;hb=e1833e25ab4a98f9a3f9f9268185af57b2280eaf;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..9d8e00b3 100644 --- a/docs/source/libmemcached/memcached_generate_hash_value.rst +++ b/docs/source/libmemcached/memcached_generate_hash_value.rst @@ -6,16 +6,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 +39,12 @@ 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,18 +60,14 @@ 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 --------