1 .TH "MEMCACHED_GENERATE_HASH_VALUE" "3" "April 09, 2011" "0.47" "libmemcached"
3 memcached_generate_hash_value \- libmemcached Documentation
5 .nr rst2man-indent-level 0
9 level \\n[rst2man-indent-level]
10 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
17 .\" .rstReportMargin pre:
19 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20 . nr rst2man-indent-level +1
21 .\" .rstReportMargin post:
25 .\" indent \\n[an-margin]
26 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27 .nr rst2man-indent-level -1
28 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
31 .\" Man page generated from reStructeredText.
37 C Client Library for memcached (libmemcached, \-lmemcached)
42 #include <libmemcached/memcached.h>
45 memcached_generate_hash_value (const char *key,
47 memcached_hash_t hash_algorithm);
50 memcached_generate_hash (memcached_st *ptr,
57 memcached_generate_hash_value() allows you to hash a key using one of
58 the hash functions defined in the library. This method is provided for
59 the convenience of higher\-level language bindings and is not necessary
60 for normal memcache operations.
62 The allowed hash algorithm constants are listed in the manpage for
63 memcached_behavior_set().
65 memcached_generate_hash() takes a memcached_st struture and produces
66 the hash value that would have been generated based on the defaults
67 of the memcached_st structure.
69 As of version 0.36 all hash methods have been placed into the library
70 libhashkit(3) which is linked with libmemcached(3). For more information please see its documentation.
73 A 32\-bit integer which is the result of hashing the given key.
74 For 64\-bit hash algorithms, only the least\-significant 32 bits are
78 To find out more information please check:
79 \fI\%https://launchpad.net/libmemcached\fP
82 Brian Aker, <\fI\%brian@tangent.org\fP>
85 \fImemcached(1)\fP \fIlibmemcached(3)\fP \fImemcached_strerror(3)\fP
89 2011, Brian Aker DataDifferential, http://datadifferential.com/
90 .\" Generated by docutils manpage writer.