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