Memcache Client library libmemcached Introduction and Deployment
Introduced
At present, there are two well-known C-language libraries to implement the operation of the memcached server: Libmemcache, libmemcached.
It is important to note that libmemcached is not a libmemcache, they are two different client libraries, with Libmemcache libraries before the libmemcached library is developed.
Libmemcached Library is now more active in development, Libmemcache Library has not been updated for a long time.
Libmemcached is a client-side development package that is used to link to the memcached cache server in a C + + language. has low memory footprint, thread safety, and provides full support for memcached functionality.
The original word summed up:
Libmemcached is an open source C/C + + client library and tools for the memcached server (http://danga.com/memcached).
It has been designed to being light on memory usage, thread safe, and provide full access to server side methods.
Libmemcached is an open source client library and tool for manipulating memcached servers. Designed to benefit from small memory consumption, thread safety, full access to various functions on the server.
Official website: http://libmemcached.org/libMemcached.html
Installation
Cd/tmpwget HTTPS://LAUNCHPAD.NET/LIBMEMCACHED/1.0/1.0.18/+DOWNLOAD/LIBMEMCACHED-1.0.18.TAR.GZTAR-ZXVF LIBMEMCACHED-1.0.18.TAR.GZCD libmemcached-1.0.18mkdir-p/usr/local/libmemcached./configure--prefix=/usr/local/ libmemcached--with-memcachedmakemake Install
Executable file
Once installed, it also provides a variety of command-line tools in the/usr/local/libmemcached/bin/directory:
Memcapable, Memcat, MEMCP, Memdump, Memerror, Memflush, MEMRM, Memslap, Memaslap, MemStat, Memexist, Memparse, memping, Memtouch
Their functions are described as follows:
Memcapable-checking a Memcached server capibilities and compatibility
Memcat-"cat" data from a server
Memcp-copy data to a server
Memdump-dumping Your Server
Memerror-translate An error code to a string
Memflush-flush all data from a server
Memrm-remove data from a server
Memslap-load Testing and Benchmarking a server
Memaslap-load Testing and Benchmarking a server
Memstat-gather statistics from a server
Memexist-check for the existance of a key
Memparse-parse an option string
Memping-test to see if a server is available.
Memtouch-touches a key.
are executable files, are some command line tools, specific use, can refer to official documents, or help.
In the include/libmemcached directory, there are some header files for this function library.
Lib directory, such as libmemcached* files, are library files.
In the Share/man1 directory, there is a man help file for command-line tools such as Memcat.
In the SHARE/MAN3 directory, there are some help files for the function library.
This article is from the SQL Server deep dives blog, so be sure to keep this source http://ultrasql.blog.51cto.com/9591438/1637875
Memcache Client library libmemcached Introduction and deployment