.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "LIBMEMCACHED" "3" "Feb 01, 2024" "1.1" "libmemcached-awesome" .SH NAME libmemcached \- C/C++ Client Library for memcached .SH SYNOPSIS .INDENT 0.0 .TP .B #include Compile and link with \-lmemcached .UNINDENT .sp .ce ---- .ce 0 .sp .sp \fBlibmemcached\fP is an open source C/C++ client library and tools for the memcached server (\fI\%http://memcached.org/\fP). It has been designed to be light on memory usage, thread safe, and provide full access to server side methods. .sp \fBlibmemcached\fP was designed to provide the greatest number of options to use Memcached. Some of the features provided: .INDENT 0.0 .IP 1. 3 Asynchronous and Synchronous Transport Support. .IP 2. 3 Consistent Hashing and Distribution. .IP 3. 3 Tunable Hashing algorithm to match keys. .IP 4. 3 Access to large object support. .IP 5. 3 Local replication. .IP 6. 3 A complete reference guide and documentation to the API. .IP 7. 3 Tools to Manage your Memcached networks. .UNINDENT .SH DESCRIPTION .sp \(dqMemcached is a high\-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.\(dq \fI\%http://memcached.org/\fP .sp \fBlibmemcached\fP is a small, thread\-safe client library for the memcached protocol. The code has all been written to allow for both web and embedded usage. It handles the work behind routing individual keys to specific servers specified by the developer (and values are matched based on server order as supplied by the user). It implements a modular and consistent method of object distribution. .sp There are multiple implemented routing and hashing methods. See the \fI\%memcached_behavior_set()\fP manpage for more information. .sp All operations are performed against a \fI\%memcached_st\fP structure. These structures can either be dynamically allocated or statically allocated and then initialized by \fI\%memcached_create()\fP\&. Functions have been written in order to encapsulate the \fI\%memcached_st\fP\&. It is not recommended that you operate directly against the structure. .sp Nearly all functions return a \fI\%memcached_return_t\fP value. This value can be translated to a printable string with \fI\%memcached_strerror()\fP\&. .sp Objects are stored on servers by hashing keys. The hash value maps the key to a particular server. All clients understand how this hashing works, so it is possibly to reliably both push data to a server and retrieve data from a server. .sp Group keys can be optionally used to group sets of objects with servers. .sp Namespaces are supported, and can be used to partition caches so that multiple applications can use the same memcached servers. .sp Some features of the library must be enabled through \fI\%memcached_behavior_set()\fP\&. .SH THREADS AND PROCESSES .sp No global variables are used in this library. .sp \fI\%memcached_st\fP structures are thread\-safe, but when using threads or forked processes it is important to keep one instance of \fI\%memcached_st\fP per process or thread. Without creating your own locking structures you can not share a single \fI\%memcached_st\fP\&. However, you can call \fI\%memcached_quit()\fP on a \fI\%memcached_st\fP and then use the resulting cloned structure. .SH SYSTEMTAP .sp \fBlibmemcached\fP can be built to support Systemtap on Linux when enabled at compile time. .sp Please see \fBstap(1)\fP and \fBdtrace(1)\fP for more information about Systemtap. .SH CLIENT PROGRAMS .sp \fBlibmemcached\fP comes with a few useful client programs: .sp \fBmemaslap(1)\fP \fBmemcapable(1)\fP \fBmemcat(1)\fP \fBmemcp(1)\fP \fBmemdump(1)\fP \fBmemerror(1)\fP \fBmemexist(1)\fP \fBmemflush(1)\fP \fBmemparse(1)\fP \fBmemping(1)\fP \fBmemrm(1)\fP \fBmemslap(1)\fP \fBmemstat(1)\fP \fBmemtouch(1)\fP .SH UTILITY LIBRARIES .sp \fBlibhashkit(3)\fP \fBlibmemcachedutil(3)\fP .SH SEE ALSO .sp \fBmemcached(1)\fP \fBlibmemcached_configuration(3)\fP \fBlibmemcached_examples(3)\fP .sp \fBmemcached_analyze(3)\fP \fBmemcached_append(3)\fP \fBmemcached_auto(3)\fP \fBmemcached_behavior(3)\fP \fBmemcached_callback(3)\fP \fBmemcached_cas(3)\fP \fBmemcached_create(3)\fP \fBmemcached_delete(3)\fP \fBmemcached_dump(3)\fP \fBmemcached_exist(3)\fP \fBmemcached_fetch(3)\fP \fBmemcached_flush(3)\fP \fBmemcached_flush_buffers(3)\fP \fBmemcached_generate_hash_value(3)\fP \fBmemcached_get(3)\fP \fBmemcached_last_error_message(3)\fP \fBmemcached_memory_allocators(3)\fP \fBmemcached_pool(3)\fP \fBmemcached_quit(3)\fP \fBmemcached_result_st(3)\fP \fBmemcached_return_t(3)\fP \fBmemcached_sasl(3)\fP \fBmemcached_servers(3)\fP \fBmemcached_server_st(3)\fP \fBmemcached_set(3)\fP \fBmemcached_set_encoding_key(3)\fP \fBmemcached_stats(3)\fP \fBmemcached_strerror(3)\fP \fBmemcached_touch(3)\fP \fBmemcached_user_data(3)\fP \fBmemcached_verbosity(3)\fP \fBmemcached_version(3)\fP .\" Generated by docutils manpage writer. .