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 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 fuctions 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.
39 A 32-bit integer which is the result of hashing the given key.
40 For 64-bit hash algorithms, only the least-significant 32 bits are
45 To find out more information please check:
46 L<http://tangent.org/552/libmemcached.html>
50 Brian Aker, E<lt>brian@tangent.orgE<gt>
54 memcached(1) libmemcached(3) memcached_behavior_set(3)