Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 9155

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Delete multiple items</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="memcached.deletebykey.html">Memcached::deleteByKey</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="memcached.deletemultibykey.html">Memcached::deleteMultiByKey</a></div>
 <div class="up"><a href="class.memcached.html">Memcached</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="memcached.deletemulti" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Memcached::deleteMulti</h1>
  <p class="verinfo">(PECL memcached &gt;= 2.0.0)</p><p class="refpurpose"><span class="refname">Memcached::deleteMulti</span> &mdash; <span class="dc-title">Delete multiple items</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-memcached.deletemulti-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><strong>Memcached::deleteMulti</strong></span>
    ( <span class="methodparam"><span class="type">array</span> <code class="parameter">$keys</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$time</code><span class="initializer"> = 0</span></span>
  ] )</div>

  <p class="para rdfs-comment">
    <span class="function"><strong>Memcached::deleteMulti()</strong></span> deletes the array of
   <em><code class="parameter">keys</code></em> from the server. The <em><code class="parameter">time</code></em>
   parameter is the amount of time in seconds (or Unix time until which) the
   client wishes the server to refuse <em>add</em> and
   <em>replace</em> commands for these keys. For this amount of time,
   the item is put into a delete queue, which means that it won&#039;t be possible to
   retrieve it by the <em>get</em> command, but
   <em>add</em> and <em>replace</em> command with these keys
   will also fail (the <em>set</em> command will succeed, however).
   After the time passes, the item is finally deleted from server memory. The
   parameter <em><code class="parameter">time</code></em> defaults to 0 (which means that the
   item will be deleted immediately and further storage commands with these keys
   will succeed).
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-memcached.deletemulti-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">keys</code></em></span>
     <dd>

      <p class="para">
       The keys to be deleted.
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">time</code></em></span>
     <dd>

      <p class="para">
       The amount of time the server will wait to delete the items.
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-memcached.deletemulti-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns <strong><code>TRUE</code></strong> on success or <strong><code>FALSE</code></strong> on failure.
   The  <span class="methodname"><a href="memcached.getresultcode.html" class="methodname">Memcached::getResultCode()</a></span> will return
   <strong><code>Memcached::RES_NOTFOUND</code></strong> if the key does not exist.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-memcached.deletemulti-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"> <span class="methodname"><a href="memcached.delete.html" class="methodname" rel="rdfs-seeAlso">Memcached::delete()</a> - Delete an item</span></li>
    <li class="member"> <span class="methodname"><a href="memcached.deletebykey.html" class="methodname" rel="rdfs-seeAlso">Memcached::deleteByKey()</a> - Delete an item from a specific server</span></li>
    <li class="member"> <span class="methodname"><a href="memcached.deletemultibykey.html" class="methodname" rel="rdfs-seeAlso">Memcached::deleteMultiByKey()</a> - Delete multiple items from a specific server</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="memcached.deletebykey.html">Memcached::deleteByKey</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="memcached.deletemultibykey.html">Memcached::deleteMultiByKey</a></div>
 <div class="up"><a href="class.memcached.html">Memcached</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>