Skip to content

Sync memcache with EN #2178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions reference/memcache/memcache/add.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 81cff4de7472c88fd3fe7204ed04d0a4d7860aec Maintainer: jpauli Status: ready -->
<!-- EN-Revision: 1c3a0a021e0d97acce54fda55f6e941557056afe Maintainer: jpauli Status: ready -->
<!-- Reviewed: no -->

<refentry xml:id="memcache.add" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>Memcache::add</refname>
<refname>memcache_add</refname>
<refpurpose>Ajoute un élément dans le server</refpurpose>
</refnamediv>

Expand All @@ -18,12 +18,19 @@
<methodparam choice="opt"><type>int</type><parameter>flag</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>expire</parameter></methodparam>
</methodsynopsis>
<methodsynopsis>
<type>bool</type><methodname>memcache_add</methodname>
<methodparam><type>Memcache</type><parameter>memcache</parameter></methodparam>
<methodparam><type>string</type><parameter>key</parameter></methodparam>
<methodparam><type>mixed</type><parameter>var</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>flag</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>expire</parameter></methodparam>
</methodsynopsis>

<para>
<function>Memcache::add</function> stocke la variable
<parameter>var</parameter> avec la clé <parameter>key</parameter> seulement si cette clé
n'existe pas déjà dans le serveur. La fonction <function>memcache_add</function> exécute la
même action.
n'existe pas déjà dans le serveur.
</para>

</refsect1>
Expand Down Expand Up @@ -64,7 +71,7 @@
<para>
Temps d'expiration de l'élément. Si égal à zéro, l'élément n'expirera jamais.
Vous pouvez aussi utiliser un timestamp Unix ou un nombre de secondes partant
du temps actuel, mais dans ce cas le nombre de secondes ne doit pas exceder
du temps actuel, mais dans ce cas le nombre de secondes ne doit pas excéder
2592000 (30 jours).
</para>
</listitem>
Expand Down
17 changes: 15 additions & 2 deletions reference/memcache/memcache/addserver.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 756e0dd85815e12bc06b3b087b8f5319482bc088 Maintainer: yannick Status: ready -->
<!-- EN-Revision: 1c3a0a021e0d97acce54fda55f6e941557056afe Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->

<refentry xml:id="memcache.addserver" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>Memcache::addServer</refname>
<refname>memcache_add_server</refname>
<refpurpose>Ajoute un serveur memcache à la liste de connexion</refpurpose>
</refnamediv>

Expand All @@ -23,6 +23,19 @@
<methodparam choice="opt"><type>callable</type><parameter>failure_callback</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>timeoutms</parameter></methodparam>
</methodsynopsis>
<methodsynopsis>
<type>bool</type><methodname>memcache_add_server</methodname>
<methodparam><type>Memcache</type><parameter>memcache</parameter></methodparam>
<methodparam><type>string</type><parameter>host</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>port</parameter><initializer>11211</initializer></methodparam>
<methodparam choice="opt"><type>bool</type><parameter>persistent</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>weight</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>timeout</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>retry_interval</parameter></methodparam>
<methodparam choice="opt"><type>bool</type><parameter>status</parameter></methodparam>
<methodparam choice="opt"><type>callable</type><parameter>failure_callback</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>timeoutms</parameter></methodparam>
</methodsynopsis>

<para>
<function>Memcache::addServer</function> ajoute un serveur à la liste de
Expand Down
9 changes: 6 additions & 3 deletions reference/memcache/memcache/close.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 756e0dd85815e12bc06b3b087b8f5319482bc088 Maintainer: yannick Status: ready -->
<!-- EN-Revision: 1c3a0a021e0d97acce54fda55f6e941557056afe Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->

<refentry xml:id="memcache.close" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>Memcache::close</refname>
<refname>memcache_close</refname>
<refpurpose>Ferme la connexion avec le serveur Memcache</refpurpose>
</refnamediv>

Expand All @@ -15,12 +15,15 @@
<type>bool</type><methodname>Memcache::close</methodname>
<void/>
</methodsynopsis>
<methodsynopsis>
<type>bool</type><methodname>memcache_close</methodname>
<methodparam><type>Memcache</type><parameter>memcache</parameter></methodparam>
</methodsynopsis>

<para>
<function>Memcache::close</function> ferme la connexion au serveur
<literal>Memcache</literal>. Cette fonction ne ferme pas les connexions
persistantes qui seront fermées uniquement lors du redémarrage du serveur web.
Vous pouvez également utiliser la fonction <function>memcache_close</function>.
</para>

</refsect1>
Expand Down
11 changes: 8 additions & 3 deletions reference/memcache/memcache/connect.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 756e0dd85815e12bc06b3b087b8f5319482bc088 Maintainer: yannick Status: ready -->
<!-- EN-Revision: 1c3a0a021e0d97acce54fda55f6e941557056afe Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->

<refentry xml:id="memcache.connect" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>Memcache::connect</refname>
<refname>memcache_connect</refname>
<refpurpose>Ouvre une connexion avec le serveur Memcache</refpurpose>
</refnamediv>

Expand All @@ -17,6 +17,12 @@
<methodparam choice="opt"><type>int</type><parameter>port</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>timeout</parameter></methodparam>
</methodsynopsis>
<methodsynopsis>
<type>Memcache</type><methodname>memcache_connect</methodname>
<methodparam><type>string</type><parameter>host</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>port</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>timeout</parameter></methodparam>
</methodsynopsis>

<para>
<function>Memcache::connect</function> établie une connexion avec le serveur
Expand All @@ -25,7 +31,6 @@
<function>Memcache::connect</function> sera automatiquement fermée
à la fin de votre script. Vous pouvez néanmoins la refermer en utilisant la
fonction <function>Memcache::close</function>.
Vous pouvez également utiliser la fonction <function>memcache_connect</function>.
</para>

</refsect1>
Expand Down
10 changes: 7 additions & 3 deletions reference/memcache/memcache/decrement.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: b95d28e6ec86e4a71e012737d36ebdc1cf009180 Maintainer: yannick Status: ready -->
<!-- EN-Revision: 1c3a0a021e0d97acce54fda55f6e941557056afe Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->

<refentry xml:id="memcache.decrement" xmlns="http://docbook.org/ns/docbook">
Expand All @@ -16,6 +15,12 @@
<methodparam><type>string</type><parameter>key</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>value</parameter><initializer>1</initializer></methodparam>
</methodsynopsis>
<methodsynopsis>
<type class="union"><type>int</type><type>false</type></type><methodname>memcache_decrement</methodname>
<methodparam><type>Memcache</type><parameter>memcache</parameter></methodparam>
<methodparam><type>string</type><parameter>key</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>value</parameter><initializer>1</initializer></methodparam>
</methodsynopsis>

<para>
<function>Memcache::decrement</function> décrémente la valeur de
Expand All @@ -37,7 +42,6 @@
</note>
<function>Memcache::decrement</function> <emphasis>ne crée pas</emphasis>
d'élément s'il n'existe pas.
Vous pouvez également utiliser la fonction <function>memcache_decrement</function>.
</para>

</refsect1>
Expand Down
10 changes: 8 additions & 2 deletions reference/memcache/memcache/delete.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: c6b1157e3a7d906f3fa0f2836ff52aa2786806fa Maintainer: yannick Status: ready -->
<!-- EN-Revision: 1c3a0a021e0d97acce54fda55f6e941557056afe Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->

<refentry xml:id="memcache.delete" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>Memcache::delete</refname>
<refname>memcache_delete</refname>
<refpurpose>Efface un élément du serveur de cache</refpurpose>
</refnamediv>

Expand All @@ -16,6 +16,12 @@
<methodparam><type>string</type><parameter>key</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>exptime</parameter><initializer>0</initializer></methodparam>
</methodsynopsis>
<methodsynopsis>
<type>bool</type><methodname>memcache_delete</methodname>
<methodparam><type>Memcache</type><parameter>memcache</parameter></methodparam>
<methodparam><type>string</type><parameter>key</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>exptime</parameter><initializer>0</initializer></methodparam>
</methodsynopsis>

<para>
<function>Memcache::delete</function> efface l'élément identifié par la clé
Expand Down
8 changes: 5 additions & 3 deletions reference/memcache/memcache/flush.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 756e0dd85815e12bc06b3b087b8f5319482bc088 Maintainer: yannick Status: ready -->
<!-- EN-Revision: 1c3a0a021e0d97acce54fda55f6e941557056afe Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->

<refentry xml:id="memcache.flush" xmlns="http://docbook.org/ns/docbook">
Expand All @@ -15,14 +14,17 @@
<type>bool</type><methodname>Memcache::flush</methodname>
<void/>
</methodsynopsis>
<methodsynopsis>
<type>bool</type><methodname>memcache_flush</methodname>
<methodparam><type>Memcache</type><parameter>memcache</parameter></methodparam>
</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.
Vous pouvez également utiliser la fonction <function>memcache_flush</function>.
</para>

</refsect1>
Expand Down
16 changes: 14 additions & 2 deletions reference/memcache/memcache/get.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: e41806c30bf6975e452c0d4ce35ab0984c2fa68c Maintainer: yannick Status: ready -->
<!-- EN-Revision: 1c3a0a021e0d97acce54fda55f6e941557056afe Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->

<refentry xml:id="memcache.get" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>Memcache::get</refname>
<refname>memcache_get</refname>
<refpurpose>Récupère un élément du serveur de cache</refpurpose>
</refnamediv>

Expand All @@ -21,6 +21,18 @@
<methodparam><type>array</type><parameter>keys</parameter></methodparam>
<methodparam choice="opt"><type>array</type><parameter role="reference">flags</parameter></methodparam>
</methodsynopsis>
<methodsynopsis>
<type>string</type><methodname>memcache_get</methodname>
<methodparam><type>Memcache</type><parameter>memcache</parameter></methodparam>
<methodparam><type>string</type><parameter>key</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter role="reference">flags</parameter></methodparam>
</methodsynopsis>
<methodsynopsis>
<type>array</type><methodname>memcache_get</methodname>
<methodparam><type>Memcache</type><parameter>memcache</parameter></methodparam>
<methodparam><type>array</type><parameter>keys</parameter></methodparam>
<methodparam choice="opt"><type>array</type><parameter role="reference">flags</parameter></methodparam>
</methodsynopsis>

<para>
<function>Memcache::get</function> retourne les données précédemment stockées
Expand Down
12 changes: 9 additions & 3 deletions reference/memcache/memcache/getextendedstats.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: e41806c30bf6975e452c0d4ce35ab0984c2fa68c Maintainer: yannick Status: ready -->
<!-- EN-Revision: 1c3a0a021e0d97acce54fda55f6e941557056afe Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->

<refentry xml:id="memcache.getextendedstats" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>Memcache::getExtendedStats</refname>
<refname>memcache_get_extended_stats</refname>
<refpurpose>Récupère des statistiques de tous les serveurs dans la liste</refpurpose>
</refnamediv>

Expand All @@ -17,14 +17,20 @@
<methodparam choice="opt"><type>int</type><parameter>slabid</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>limit</parameter><initializer>100</initializer></methodparam>
</methodsynopsis>
<methodsynopsis>
<type>array</type><methodname>memcache_get_extended_stats</methodname>
<methodparam><type>Memcache</type><parameter>memcache</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>type</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>slabid</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>limit</parameter><initializer>100</initializer></methodparam>
</methodsynopsis>

<para>
<function>Memcache::getExtendedStats</function> retourne un tableau
associatif à deux dimensions avec des statistiques de serveurs. Les clés
des tableaux correspondent à hôte:port des serveurs et les valeurs
contiennent des statistiques du serveur individuel. Un serveur en échec
aura ses entrées correspondantes fixées à &false;.
Vous pouvez également utiliser la fonction <function>memcache_get_extended_stats</function>.
</para>

<note>
Expand Down
13 changes: 9 additions & 4 deletions reference/memcache/memcache/getserverstatus.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 81cff4de7472c88fd3fe7204ed04d0a4d7860aec Maintainer: yannick Status: ready -->
<!-- EN-Revision: 1c3a0a021e0d97acce54fda55f6e941557056afe Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->

<refentry xml:id="memcache.getserverstatus" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>Memcache::getServerStatus</refname>
<refname>memcache_get_server_status</refname>
<refpurpose>Retourne le statut du serveur</refpurpose>
</refnamediv>

Expand All @@ -16,11 +16,16 @@
<methodparam><type>string</type><parameter>host</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>port</parameter><initializer>11211</initializer></methodparam>
</methodsynopsis>
<methodsynopsis>
<type>int</type><methodname>memcache_get_server_status</methodname>
<methodparam><type>Memcache</type><parameter>memcache</parameter></methodparam>
<methodparam><type>string</type><parameter>host</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>port</parameter><initializer>11211</initializer></methodparam>
</methodsynopsis>

<para>
<function>Memcache::getServerStatus</function> retourne le statut
en ligne/hors ligne du serveur. Vous pouvez également utiliser la fonction
<function>memcache_get_server_status</function>.
en ligne/hors ligne du serveur.
</para>

<note>
Expand Down
12 changes: 9 additions & 3 deletions reference/memcache/memcache/getstats.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: b95d28e6ec86e4a71e012737d36ebdc1cf009180 Maintainer: yannick Status: ready -->
<!-- EN-Revision: 1c3a0a021e0d97acce54fda55f6e941557056afe Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->

<refentry xml:id="memcache.getstats" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>Memcache::getStats</refname>
<refname>memcache_get_stats</refname>
<refpurpose>Lit les statistiques du serveur</refpurpose>
</refnamediv>

Expand All @@ -17,13 +17,19 @@
<methodparam choice="opt"><type>int</type><parameter>slabid</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>limit</parameter><initializer>100</initializer></methodparam>
</methodsynopsis>
<methodsynopsis>
<type class="union"><type>array</type><type>false</type></type><methodname>memcache_get_stats</methodname>
<methodparam><type>Memcache</type><parameter>memcache</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>type</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>slabid</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>limit</parameter><initializer>100</initializer></methodparam>
</methodsynopsis>

<para>
<function>Memcache::getStats</function> retourne un tableau associatif
avec les statistiques du serveur. Les index du tableau correspondent
aux paramètres de statistiques, et la valeur associée est la valeur de
ces statistiques.
Vous pouvez aussi utiliser la fonction <function>memcache_get_stats</function>.
</para>

</refsect1>
Expand Down
9 changes: 6 additions & 3 deletions reference/memcache/memcache/getversion.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 756e0dd85815e12bc06b3b087b8f5319482bc088 Maintainer: yannick Status: ready -->
<!-- EN-Revision: 1c3a0a021e0d97acce54fda55f6e941557056afe Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->

<refentry xml:id="memcache.getversion" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>Memcache::getVersion</refname>
<refname>memcache_get_version</refname>
<refpurpose>Retourne le numéro de version du serveur</refpurpose>
</refnamediv>

Expand All @@ -15,11 +15,14 @@
<type class="union"><type>string</type><type>false</type></type><methodname>Memcache::getVersion</methodname>
<void/>
</methodsynopsis>
<methodsynopsis>
<type class="union"><type>string</type><type>false</type></type><methodname>memcache_get_version</methodname>
<methodparam><type>Memcache</type><parameter>memcache</parameter></methodparam>
</methodsynopsis>

<para>
<function>Memcache::getVersion</function> retourne une chaîne avec
le numéro de version du serveur.
Vous pouvez aussi utiliser la fonction <function>memcache_get_version</function>.
</para>

</refsect1>
Expand Down
Loading