1..::docs::memcached_generate_hash_lviablm.ue.em:(c:3ad)cohcesd::memcached_generate_hash_value(3)
2
3
4

NAME

6       memcached_generate_hash_value - Hash a key value
7

LIBRARY

9       C Client Library for memcached (libmemcached, -lmemcached)
10

SYNOPSIS

12         #include <memcached.h>
13
14         uint32_t
15           memcached_generate_hash_value (const char *key,
16                                          size_t key_length,
17                                          memcached_hash hash_algorithm);
18
19         uint32_t
20           memcached_generate_hash (memcached_st *ptr,
21                                    const char *key,
22                                    size_t key_length);
23

DESCRIPTION

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.
29
30       The allowed hash algorithm constants are listed in the manpage for
31       memcached_behavior_set().
32
33       memcached_generate_hash() takes a memcached_st struture and produces
34       the hash value that would have been generated based on the defaults of
35       the memcached_st structure.
36

RETURN

38       A 32-bit integer which is the result of hashing the given key.  For
39       64-bit hash algorithms, only the least-significant 32 bits are
40       returned.
41

HOME

43       To find out more information please check:
44       <http://tangent.org/552/libmemcached.html>
45

AUTHOR

47       Brian Aker, <brian@tangent.org>
48

SEE ALSO

50       memcached(1) libmemcached(3) memcached_behavior_set(3)
51
52
53
54                                  200.9.-:0:5d-o2c8s::memcached_generate_hash_value(3)
Impressum