mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-04-23 16:48:22 +02:00
281843c20d
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@171719 c90b9560-bf6c-de11-be94-00142212c4b1
75 lines
1.9 KiB
XML
75 lines
1.9 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.2 $ -->
|
|
<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready -->
|
|
<refentry id="function.Memcache-flush">
|
|
<refnamediv>
|
|
<refname>Memcache::flush</refname>
|
|
<refpurpose>Efface tous les éléments existant sur le serveur de cache</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Description</title>
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>Memcache::flush</methodname>
|
|
<void/>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>Memcache::flush</function> invalide immédiatement tous les
|
|
éléments existant sur le serveur de cache. <function>Memcache::flush</function>
|
|
ne libère aucune ressource actuellement, il marque uniquement tous les
|
|
éléments comme ayant expirés, donc la mémoire occupée sera
|
|
réutilisée avec de nouveaux éléments.
|
|
</para>
|
|
<para>
|
|
Vous pouvez également utiliser la fonction
|
|
<function>memcache_flush</function>.
|
|
Regardez l'exemple ci-dessous.
|
|
</para>
|
|
<example>
|
|
<title>Exemple avec <function>Memcache::flush</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
|
|
/* API procédurale */
|
|
$memcache_obj = memcache_connect('memcache_host', 11211);
|
|
|
|
memcache_flush($memcache_obj);
|
|
|
|
/* API orientée objet */
|
|
|
|
$memcache_obj = new Memcache;
|
|
$memcache_obj->connect('memcache_host', 11211);
|
|
|
|
$memcache_obj->flush();
|
|
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
<para>
|
|
&return.success;
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|