function.memcache-getstats.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 127 行

HTML
127
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Get statistics of the server</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.memcache-getserverstatus.html">Memcache::getServerStatus</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.memcache-getversion.html">Memcache::getVersion</a></div> <div class="up"><a href="ref.memcache.html">Memcache Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.memcache-getstats" class="refentry"> <div class="refnamediv">  <h1 class="refname">Memcache::getStats</h1>  <p class="verinfo">(No version information available, might be only in CVS)</p><p class="refpurpose"><span class="refname">Memcache::getStats</span> &mdash; <span class="dc-title">Get statistics of the server</span></p> </div> <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type">array</span> <span class="methodname"><b><b>Memcache::getStats</b></b></span>    ([ <span class="methodparam"><span class="type">string</span> <tt class="parameter">$type</tt></span>   [, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$slabid</tt></span>   [, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$limit</tt></span>  ]]] )</div>  <p class="para rdfs-comment">   <b>Memcache::getStats()</b> returns an associative array    with server&#039;s statistics. Array keys correspond to stats parameters and    values to parameter&#039;s values.   Also you can use <b>memcache_get_stats()</b> function.  </p> </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt>     <span class="term"><i><tt class="parameter">type</tt></i></span>     <dd>      <p class="para">       The type of statistics to fetch. Valid values are {reset,        malloc, maps, cachedump, slabs, items, sizes}. According to       the memcached protocol spec these additional arguments &quot;are        subject to change for the convenience of memcache developers&quot;.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">slabid</tt></i></span>     <dd>      <p class="para">       Used in conjunction with <i><tt class="parameter">type</tt></i> set to        cachedump to identify the slab to dump from. The cachedump       command ties up the server and is strictly to be used for        debugging purposes.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">limit</tt></i></span>     <dd>      <p class="para">       Used in conjunction with <i><tt class="parameter">type</tt></i> set to        cachedump to limit the number of entries to dump. Default value       is 100.      </p>     </dd>    </dt>   </dl>  </p> </div> <div class="refsect1 returnvalues">  <h3 class="title">Return Values</h3>  <p class="para">   Returns an associative array of server statistics or <b><tt>FALSE</tt></b> on failure.  </p> </div> <div class="refsect1 seealso">  <h3 class="title">See Also</h3>  <p class="para">   <ul class="simplelist">    <li class="member"><a href="function.memcache-getversion.html" class="function" rel="rdfs-seeAlso">Memcache::getVersion()</a></li>    <li class="member"><a href="function.memcache-getextendedstats.html" class="function" rel="rdfs-seeAlso">Memcache::getExtendedStats()</a></li>   </ul>  </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.memcache-getserverstatus.html">Memcache::getServerStatus</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.memcache-getversion.html">Memcache::getVersion</a></div> <div class="up"><a href="ref.memcache.html">Memcache Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?