4 memcached_generate_hash_value
5 *****************************
16 C Client Library for memcached (libmemcached, -lmemcached)
27 #include <libmemcached/memcached.h>
30 memcached_generate_hash_value (const char *key,
32 memcached_hash_t hash_algorithm);
35 memcached_generate_hash (memcached_st *ptr,
46 memcached_generate_hash_value() allows you to hash a key using one of
47 the hash functions defined in the library. This method is provided for
48 the convenience of higher-level language bindings and is not necessary
49 for normal memcache operations.
51 The allowed hash algorithm constants are listed in the manpage for
52 memcached_behavior_set().
54 memcached_generate_hash() takes a memcached_st struture and produces
55 the hash value that would have been generated based on the defaults
56 of the memcached_st structure.
58 As of version 0.36 all hash methods have been placed into the library
59 libhashkit(3) which is linked with libmemcached(3).
67 A 32-bit integer which is the result of hashing the given key.
68 For 64-bit hash algorithms, only the least-significant 32 bits are
77 To find out more information please check:
78 `https://launchpad.net/libmemcached <https://launchpad.net/libmemcached>`_
86 Brian Aker, <brian@tangent.org>
94 :manpage:`memcached(1)` :manpage:`libmemcached(3)` :manpage:`memcached_strerror(3)`