3 memcached_generate_hash_value
7 C Client Library for memcached (libmemcached, -lmemcached)
11 #include <memcached.h>
14 memcached_generate_hash_value (const char *key,
16 memcached_hash hash_algorithm);
20 memcached_generate_hash_value() allows you to hash a key using one of
21 the hash fuctions defined in the library. This method is provided for
22 the convenience of higher-level language bindings and is not necessary
23 for normal memcache operations.
25 The allowed hash algorithm constants are listed in the manpage for
26 memcached_behavior_set().
30 A 32-bit integer which is the result of hashing the given key.
31 For 64-bit hash algorithms, only the least-significant 32 bits are
36 To find out more information please check:
37 L<http://tangent.org/552/libmemcached.html>
41 Brian Aker, E<lt>brian@tangent.orgE<gt>
45 memcached(1) libmemcached(3) memcached_behavior_set(3)