3 memcached_generate_hash_value - Hash a key value
7 C Client Library for memcached (libmemcached, -lmemcached)
11 #include <memcached.h>
14 memcached_generate_hash_value (const char *key,
16 memcached_hash_t hash_algorithm);
19 memcached_generate_hash (memcached_st *ptr,
25 memcached_generate_hash_value() allows you to hash a key using one of
26 the hash functions defined in the library. This method is provided for
27 the convenience of higher-level language bindings and is not necessary
28 for normal memcache operations.
30 The allowed hash algorithm constants are listed in the manpage for
31 memcached_behavior_set().
33 memcached_generate_hash() takes a memcached_st struture and produces
34 the hash value that would have been generated based on the defaults
35 of the memcached_st structure.
37 As of version 0.36 all hash methods have been placed into the library
38 libhashkit(3) which is linked with libmemcached(3).
42 A 32-bit integer which is the result of hashing the given key.
43 For 64-bit hash algorithms, only the least-significant 32 bits are
48 To find out more information please check:
49 L<https://launchpad.net/libmemcached>
53 Brian Aker, E<lt>brian@tangent.orgE<gt>
57 memcached(1) libmemcached(3) memcached_behavior_set(3) libhashkit(3)