4 <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
5 <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
9 <meta name=
"viewport" content=
"width=device-width, initial-scale=1.0">
11 <title>memcapable
— libmemcached
1.1.0 documentation
</title>
20 <script type=
"text/javascript" src=
"../_static/js/modernizr.min.js"></script>
23 <script type=
"text/javascript" id=
"documentation_options" data-url_root=
"../" src=
"../_static/documentation_options.js"></script>
24 <script type=
"text/javascript" src=
"../_static/jquery.js"></script>
25 <script type=
"text/javascript" src=
"../_static/underscore.js"></script>
26 <script type=
"text/javascript" src=
"../_static/doctools.js"></script>
27 <script type=
"text/javascript" src=
"../_static/language_data.js"></script>
29 <script type=
"text/javascript" src=
"../_static/js/theme.js"></script>
34 <link rel=
"stylesheet" href=
"../_static/css/theme.css" type=
"text/css" />
35 <link rel=
"stylesheet" href=
"../_static/pygments.css" type=
"text/css" />
36 <link rel=
"index" title=
"Index" href=
"../genindex.html" />
37 <link rel=
"search" title=
"Search" href=
"../search.html" />
38 <link rel=
"copyright" title=
"Copyright" href=
"../copyright.html" />
39 <link rel=
"next" title=
"memdump" href=
"memdump.html" />
40 <link rel=
"prev" title=
"memparse" href=
"memparse.html" />
43 <body class=
"wy-body-for-nav">
46 <div class=
"wy-grid-for-nav">
48 <nav data-toggle=
"wy-nav-shift" class=
"wy-nav-side">
49 <div class=
"wy-side-scroll">
50 <div class=
"wy-side-nav-search" >
54 <a href=
"../index.html" class=
"icon icon-home"> libmemcached
71 <form id=
"rtd-search-form" class=
"wy-form" action=
"../search.html" method=
"get">
72 <input type=
"text" name=
"q" placeholder=
"Search docs" />
73 <input type=
"hidden" name=
"check_keywords" value=
"yes" />
74 <input type=
"hidden" name=
"area" value=
"default" />
81 <div class=
"wy-menu wy-menu-vertical" data-spy=
"affix" role=
"navigation" aria-label=
"main navigation">
89 <li class=
"toctree-l1"><a class=
"reference internal" href=
"../libmemcached.html">Introduction
</a></li>
90 <li class=
"toctree-l1"><a class=
"reference internal" href=
"../libmemcached/index.html">libmemcached API
</a></li>
91 <li class=
"toctree-l1"><a class=
"reference internal" href=
"../libmemcachedutil/index.html">libmemcachedutil API
</a></li>
92 <li class=
"toctree-l1"><a class=
"reference internal" href=
"../libhashkit/index.html">libhashkit API
</a></li>
93 <li class=
"toctree-l1 current"><a class=
"reference internal" href=
"index.html">Client Applications
</a><ul class=
"current">
94 <li class=
"toctree-l2"><a class=
"reference internal" href=
"memexist.html">memexist — Check for the existence of a key
</a></li>
95 <li class=
"toctree-l2"><a class=
"reference internal" href=
"memcat.html">memcat —
"cat
" data from a server
</a></li>
96 <li class=
"toctree-l2"><a class=
"reference internal" href=
"memcp.html">memcp —
"cp
" files to a server
</a></li>
97 <li class=
"toctree-l2"><a class=
"reference internal" href=
"memtouch.html">memtouch —
"touch
" a key
</a></li>
98 <li class=
"toctree-l2"><a class=
"reference internal" href=
"memrm.html">memrm –
"rm
" a key
</a></li>
99 <li class=
"toctree-l2"><a class=
"reference internal" href=
"memaslap.html">memaslap - Load testing and benchmarking a server
</a></li>
100 <li class=
"toctree-l2"><a class=
"reference internal" href=
"memslap.html">memslap - Load testing and benchmarking a server
</a></li>
101 <li class=
"toctree-l2"><a class=
"reference internal" href=
"memping.html">memping – Ping a server
</a></li>
102 <li class=
"toctree-l2"><a class=
"reference internal" href=
"memstat.html">memstat – Gather statistics from a server
</a></li>
103 <li class=
"toctree-l2"><a class=
"reference internal" href=
"memerror.html">memerror — Translate libmemcached error codes
</a></li>
104 <li class=
"toctree-l2"><a class=
"reference internal" href=
"memparse.html">memparse — Parse and validate an option string
</a></li>
105 <li class=
"toctree-l2 current"><a class=
"current reference internal" href=
"#">memcapable — Check a server's capabilities and compatibility
</a></li>
106 <li class=
"toctree-l2"><a class=
"reference internal" href=
"memdump.html">memdump — Dump a server's data
</a></li>
107 <li class=
"toctree-l2"><a class=
"reference internal" href=
"memflush.html">memflush — Flush a server (erase all cached data)
</a></li>
110 <li class=
"toctree-l1"><a class=
"reference internal" href=
"../libmemcached/index_misc.html">Miscellaneous
</a></li>
113 <li class=
"toctree-l1"><a class=
"reference internal" href=
"../changelogs.html">Change Logs
</a></li>
114 <li class=
"toctree-l1"><a class=
"reference internal" href=
"../copyright.html">Copyright
</a></li>
123 <section data-toggle=
"wy-nav-shift" class=
"wy-nav-content-wrap">
126 <nav class=
"wy-nav-top" aria-label=
"top navigation">
128 <i data-toggle=
"wy-nav-top" class=
"fa fa-bars"></i>
129 <a href=
"../index.html">libmemcached
</a>
134 <div class=
"wy-nav-content">
136 <div class=
"rst-content">
154 <div role=
"navigation" aria-label=
"breadcrumbs navigation">
156 <ul class=
"wy-breadcrumbs">
158 <li><a href=
"../index.html">Docs
</a> »</li>
160 <li><a href=
"index.html">Client Applications
</a> »</li>
165 <li class=
"wy-breadcrumbs-aside">
169 <a href=
"https://github.com/m6w6/libmemcached/blob/v1.x/docs/source/bin/memcapable.rst" class=
"fa fa-github"> Edit on GitHub
</a>
180 <div role=
"main" class=
"document" itemscope=
"itemscope" itemtype=
"http://schema.org/Article">
181 <div itemprop=
"articleBody">
183 <div class=
"section" id=
"memcapable">
184 <h1>memcapable
<a class=
"headerlink" href=
"#memcapable" title=
"Permalink to this headline">¶
</a></h1>
185 <div class=
"section" id=
"synopsis">
186 <h2>SYNOPSIS
<a class=
"headerlink" href=
"#synopsis" title=
"Permalink to this headline">¶
</a></h2>
187 <p>memcapable [options]
</p>
188 <p>Check a memcached server's capabilities and compatibility.
</p>
190 <div class=
"section" id=
"description">
191 <h2>DESCRIPTION
<a class=
"headerlink" href=
"#description" title=
"Permalink to this headline">¶
</a></h2>
192 <p><strong class=
"program">memcapable
</strong> connects to the specified memcached server and tries to
193 determine its capabilities by running various commands and verifying the response.
</p>
195 <div class=
"section" id=
"options">
196 <h2>OPTIONS
<a class=
"headerlink" href=
"#options" title=
"Permalink to this headline">¶
</a></h2>
198 <dt id=
"cmdoption-memcapable-h">
199 <code class=
"descname">-h
</code><code class=
"descclassname"> hostname
</code><a class=
"headerlink" href=
"#cmdoption-memcapable-h" title=
"Permalink to this definition">¶
</a></dt>
200 <dd><p>Specify the hostname to connect to. The default is
<em>localhost
</em>.
</p>
204 <dt id=
"cmdoption-memcapable-p">
205 <code class=
"descname">-p
</code><code class=
"descclassname"> port
</code><a class=
"headerlink" href=
"#cmdoption-memcapable-p" title=
"Permalink to this definition">¶
</a></dt>
206 <dd><p>Specify the port number to connect to. The default is
<em>11211</em>.
</p>
210 <dt id=
"cmdoption-memcapable-c">
211 <code class=
"descname">-c
</code><code class=
"descclassname"></code><a class=
"headerlink" href=
"#cmdoption-memcapable-c" title=
"Permalink to this definition">¶
</a></dt>
212 <dd><p><em class=
"manpage"><a class=
"manpage reference external" href=
"https://linux.die.net/man/3/abort">abort(
3)
</a></em> when detecting an error from the server.
</p>
216 <dt id=
"cmdoption-memcapable-v">
217 <code class=
"descname">-v
</code><code class=
"descclassname"></code><a class=
"headerlink" href=
"#cmdoption-memcapable-v" title=
"Permalink to this definition">¶
</a></dt>
218 <dd><p>Print out the comparison when it detects an error from the server.
</p>
222 <dt id=
"cmdoption-memcapable-t">
223 <code class=
"descname">-t
</code><code class=
"descclassname"> n
</code><a class=
"headerlink" href=
"#cmdoption-memcapable-t" title=
"Permalink to this definition">¶
</a></dt>
224 <dd><p>Set the timeout for an IO operation to/from the server to
<em>n
</em> seconds.
</p>
228 <div class=
"section" id=
"see-also">
229 <h2>SEE ALSO
<a class=
"headerlink" href=
"#see-also" title=
"Permalink to this headline">¶
</a></h2>
231 <li><a class=
"reference internal" href=
"../libmemcached.html"><span class=
"doc">C/C++ Client Library for memcached
</span></a></li>
242 <div class=
"rst-footer-buttons" role=
"navigation" aria-label=
"footer navigation">
244 <a href=
"memdump.html" class=
"btn btn-neutral float-right" title=
"memdump" accesskey=
"n" rel=
"next">Next
<span class=
"fa fa-arrow-circle-right"></span></a>
247 <a href=
"memparse.html" class=
"btn btn-neutral float-left" title=
"memparse" accesskey=
"p" rel=
"prev"><span class=
"fa fa-arrow-circle-left"></span> Previous
</a>
254 <div role=
"contentinfo">
256 © <a href=
"../copyright.html">Copyright
</a>
260 Built with
<a href=
"http://sphinx-doc.org/">Sphinx
</a> using a
<a href=
"https://github.com/rtfd/sphinx_rtd_theme">theme
</a> provided by
<a href=
"https://readthedocs.org">Read the Docs
</a>.
273 <script type=
"text/javascript">
275 SphinxRtdTheme.Navigation.enable(true);