1 ===============================
2 Generating hash values directly
3 ===============================
14 C Client Library for memcached (libmemcached, -lmemcached)
25 #include <libmemcached/memcached.h>
28 memcached_generate_hash_value (const char *key,
30 memcached_hash_t hash_algorithm);
33 memcached_generate_hash (memcached_st *ptr,
44 memcached_generate_hash_value() allows you to hash a key using one of
45 the hash functions defined in the library. This method is provided for
46 the convenience of higher-level language bindings and is not necessary
47 for normal memcache operations.
49 The allowed hash algorithm constants are listed in the manpage for
50 memcached_behavior_set().
52 memcached_generate_hash() takes a memcached_st struture and produces
53 the hash value that would have been generated based on the defaults
54 of the memcached_st structure.
56 As of version 0.36 all hash methods have been placed into the library
57 libhashkit(3) which is linked with libmemcached(3). For more information please see its documentation.
65 A 32-bit integer which is the result of hashing the given key.
66 For 64-bit hash algorithms, only the least-significant 32 bits are
75 To find out more information please check:
76 `https://launchpad.net/libmemcached <https://launchpad.net/libmemcached>`_
84 Brian Aker, <brian@tangent.org>
92 :manpage:`memcached(1)` :manpage:`libmemcached(3)` :manpage:`memcached_strerror(3)`