Skip to content

Commit a2cceb0

Browse files
authored
Sync memcache with EN (#2178)
1 parent 704b7c5 commit a2cceb0

18 files changed

+166
-58
lines changed

reference/memcache/memcache/add.xml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- $Revision$ -->
3-
<!-- EN-Revision: 81cff4de7472c88fd3fe7204ed04d0a4d7860aec Maintainer: jpauli Status: ready -->
2+
<!-- EN-Revision: 1c3a0a021e0d97acce54fda55f6e941557056afe Maintainer: jpauli Status: ready -->
43
<!-- Reviewed: no -->
54

65
<refentry xml:id="memcache.add" xmlns="http://docbook.org/ns/docbook">
76
<refnamediv>
87
<refname>Memcache::add</refname>
8+
<refname>memcache_add</refname>
99
<refpurpose>Ajoute un élément dans le server</refpurpose>
1010
</refnamediv>
1111

@@ -18,12 +18,19 @@
1818
<methodparam choice="opt"><type>int</type><parameter>flag</parameter></methodparam>
1919
<methodparam choice="opt"><type>int</type><parameter>expire</parameter></methodparam>
2020
</methodsynopsis>
21+
<methodsynopsis>
22+
<type>bool</type><methodname>memcache_add</methodname>
23+
<methodparam><type>Memcache</type><parameter>memcache</parameter></methodparam>
24+
<methodparam><type>string</type><parameter>key</parameter></methodparam>
25+
<methodparam><type>mixed</type><parameter>var</parameter></methodparam>
26+
<methodparam choice="opt"><type>int</type><parameter>flag</parameter></methodparam>
27+
<methodparam choice="opt"><type>int</type><parameter>expire</parameter></methodparam>
28+
</methodsynopsis>
2129

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

2936
</refsect1>
@@ -64,7 +71,7 @@
6471
<para>
6572
Temps d'expiration de l'élément. Si égal à zéro, l'élément n'expirera jamais.
6673
Vous pouvez aussi utiliser un timestamp Unix ou un nombre de secondes partant
67-
du temps actuel, mais dans ce cas le nombre de secondes ne doit pas exceder
74+
du temps actuel, mais dans ce cas le nombre de secondes ne doit pas excéder
6875
2592000 (30 jours).
6976
</para>
7077
</listitem>

reference/memcache/memcache/addserver.xml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- $Revision$ -->
3-
<!-- EN-Revision: 756e0dd85815e12bc06b3b087b8f5319482bc088 Maintainer: yannick Status: ready -->
2+
<!-- EN-Revision: 1c3a0a021e0d97acce54fda55f6e941557056afe Maintainer: yannick Status: ready -->
43
<!-- Reviewed: no -->
54

65
<refentry xml:id="memcache.addserver" xmlns="http://docbook.org/ns/docbook">
76
<refnamediv>
87
<refname>Memcache::addServer</refname>
8+
<refname>memcache_add_server</refname>
99
<refpurpose>Ajoute un serveur memcache à la liste de connexion</refpurpose>
1010
</refnamediv>
1111

@@ -23,6 +23,19 @@
2323
<methodparam choice="opt"><type>callable</type><parameter>failure_callback</parameter></methodparam>
2424
<methodparam choice="opt"><type>int</type><parameter>timeoutms</parameter></methodparam>
2525
</methodsynopsis>
26+
<methodsynopsis>
27+
<type>bool</type><methodname>memcache_add_server</methodname>
28+
<methodparam><type>Memcache</type><parameter>memcache</parameter></methodparam>
29+
<methodparam><type>string</type><parameter>host</parameter></methodparam>
30+
<methodparam choice="opt"><type>int</type><parameter>port</parameter><initializer>11211</initializer></methodparam>
31+
<methodparam choice="opt"><type>bool</type><parameter>persistent</parameter></methodparam>
32+
<methodparam choice="opt"><type>int</type><parameter>weight</parameter></methodparam>
33+
<methodparam choice="opt"><type>int</type><parameter>timeout</parameter></methodparam>
34+
<methodparam choice="opt"><type>int</type><parameter>retry_interval</parameter></methodparam>
35+
<methodparam choice="opt"><type>bool</type><parameter>status</parameter></methodparam>
36+
<methodparam choice="opt"><type>callable</type><parameter>failure_callback</parameter></methodparam>
37+
<methodparam choice="opt"><type>int</type><parameter>timeoutms</parameter></methodparam>
38+
</methodsynopsis>
2639

2740
<para>
2841
<function>Memcache::addServer</function> ajoute un serveur à la liste de

reference/memcache/memcache/close.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- $Revision$ -->
3-
<!-- EN-Revision: 756e0dd85815e12bc06b3b087b8f5319482bc088 Maintainer: yannick Status: ready -->
2+
<!-- EN-Revision: 1c3a0a021e0d97acce54fda55f6e941557056afe Maintainer: yannick Status: ready -->
43
<!-- Reviewed: no -->
54

65
<refentry xml:id="memcache.close" xmlns="http://docbook.org/ns/docbook">
76
<refnamediv>
87
<refname>Memcache::close</refname>
8+
<refname>memcache_close</refname>
99
<refpurpose>Ferme la connexion avec le serveur Memcache</refpurpose>
1010
</refnamediv>
1111

@@ -15,12 +15,15 @@
1515
<type>bool</type><methodname>Memcache::close</methodname>
1616
<void/>
1717
</methodsynopsis>
18+
<methodsynopsis>
19+
<type>bool</type><methodname>memcache_close</methodname>
20+
<methodparam><type>Memcache</type><parameter>memcache</parameter></methodparam>
21+
</methodsynopsis>
1822

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

2629
</refsect1>

reference/memcache/memcache/connect.xml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- $Revision$ -->
3-
<!-- EN-Revision: 756e0dd85815e12bc06b3b087b8f5319482bc088 Maintainer: yannick Status: ready -->
2+
<!-- EN-Revision: 1c3a0a021e0d97acce54fda55f6e941557056afe Maintainer: yannick Status: ready -->
43
<!-- Reviewed: no -->
54

65
<refentry xml:id="memcache.connect" xmlns="http://docbook.org/ns/docbook">
76
<refnamediv>
87
<refname>Memcache::connect</refname>
8+
<refname>memcache_connect</refname>
99
<refpurpose>Ouvre une connexion avec le serveur Memcache</refpurpose>
1010
</refnamediv>
1111

@@ -17,6 +17,12 @@
1717
<methodparam choice="opt"><type>int</type><parameter>port</parameter></methodparam>
1818
<methodparam choice="opt"><type>int</type><parameter>timeout</parameter></methodparam>
1919
</methodsynopsis>
20+
<methodsynopsis>
21+
<type>Memcache</type><methodname>memcache_connect</methodname>
22+
<methodparam><type>string</type><parameter>host</parameter></methodparam>
23+
<methodparam choice="opt"><type>int</type><parameter>port</parameter></methodparam>
24+
<methodparam choice="opt"><type>int</type><parameter>timeout</parameter></methodparam>
25+
</methodsynopsis>
2026

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

3136
</refsect1>

reference/memcache/memcache/decrement.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- $Revision$ -->
3-
<!-- EN-Revision: b95d28e6ec86e4a71e012737d36ebdc1cf009180 Maintainer: yannick Status: ready -->
2+
<!-- EN-Revision: 1c3a0a021e0d97acce54fda55f6e941557056afe Maintainer: yannick Status: ready -->
43
<!-- Reviewed: no -->
54

65
<refentry xml:id="memcache.decrement" xmlns="http://docbook.org/ns/docbook">
@@ -16,6 +15,12 @@
1615
<methodparam><type>string</type><parameter>key</parameter></methodparam>
1716
<methodparam choice="opt"><type>int</type><parameter>value</parameter><initializer>1</initializer></methodparam>
1817
</methodsynopsis>
18+
<methodsynopsis>
19+
<type class="union"><type>int</type><type>false</type></type><methodname>memcache_decrement</methodname>
20+
<methodparam><type>Memcache</type><parameter>memcache</parameter></methodparam>
21+
<methodparam><type>string</type><parameter>key</parameter></methodparam>
22+
<methodparam choice="opt"><type>int</type><parameter>value</parameter><initializer>1</initializer></methodparam>
23+
</methodsynopsis>
1924

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

4347
</refsect1>

reference/memcache/memcache/delete.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- $Revision$ -->
3-
<!-- EN-Revision: c6b1157e3a7d906f3fa0f2836ff52aa2786806fa Maintainer: yannick Status: ready -->
2+
<!-- EN-Revision: 1c3a0a021e0d97acce54fda55f6e941557056afe Maintainer: yannick Status: ready -->
43
<!-- Reviewed: no -->
54

65
<refentry xml:id="memcache.delete" xmlns="http://docbook.org/ns/docbook">
76
<refnamediv>
87
<refname>Memcache::delete</refname>
8+
<refname>memcache_delete</refname>
99
<refpurpose>Efface un élément du serveur de cache</refpurpose>
1010
</refnamediv>
1111

@@ -16,6 +16,12 @@
1616
<methodparam><type>string</type><parameter>key</parameter></methodparam>
1717
<methodparam choice="opt"><type>int</type><parameter>exptime</parameter><initializer>0</initializer></methodparam>
1818
</methodsynopsis>
19+
<methodsynopsis>
20+
<type>bool</type><methodname>memcache_delete</methodname>
21+
<methodparam><type>Memcache</type><parameter>memcache</parameter></methodparam>
22+
<methodparam><type>string</type><parameter>key</parameter></methodparam>
23+
<methodparam choice="opt"><type>int</type><parameter>exptime</parameter><initializer>0</initializer></methodparam>
24+
</methodsynopsis>
1925

2026
<para>
2127
<function>Memcache::delete</function> efface l'élément identifié par la clé

reference/memcache/memcache/flush.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- $Revision$ -->
3-
<!-- EN-Revision: 756e0dd85815e12bc06b3b087b8f5319482bc088 Maintainer: yannick Status: ready -->
2+
<!-- EN-Revision: 1c3a0a021e0d97acce54fda55f6e941557056afe Maintainer: yannick Status: ready -->
43
<!-- Reviewed: no -->
54

65
<refentry xml:id="memcache.flush" xmlns="http://docbook.org/ns/docbook">
@@ -15,14 +14,17 @@
1514
<type>bool</type><methodname>Memcache::flush</methodname>
1615
<void/>
1716
</methodsynopsis>
17+
<methodsynopsis>
18+
<type>bool</type><methodname>memcache_flush</methodname>
19+
<methodparam><type>Memcache</type><parameter>memcache</parameter></methodparam>
20+
</methodsynopsis>
1821

1922
<para>
2023
<function>Memcache::flush</function> invalide immédiatement tous les
2124
éléments existant sur le serveur de cache. <function>Memcache::flush</function>
2225
ne libère aucune ressource actuellement, il marque uniquement tous les
2326
éléments comme ayant expirés, donc la mémoire occupée sera
2427
réutilisée avec de nouveaux éléments.
25-
Vous pouvez également utiliser la fonction <function>memcache_flush</function>.
2628
</para>
2729

2830
</refsect1>

reference/memcache/memcache/get.xml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- $Revision$ -->
3-
<!-- EN-Revision: e41806c30bf6975e452c0d4ce35ab0984c2fa68c Maintainer: yannick Status: ready -->
2+
<!-- EN-Revision: 1c3a0a021e0d97acce54fda55f6e941557056afe Maintainer: yannick Status: ready -->
43
<!-- Reviewed: no -->
54

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

@@ -21,6 +21,18 @@
2121
<methodparam><type>array</type><parameter>keys</parameter></methodparam>
2222
<methodparam choice="opt"><type>array</type><parameter role="reference">flags</parameter></methodparam>
2323
</methodsynopsis>
24+
<methodsynopsis>
25+
<type>string</type><methodname>memcache_get</methodname>
26+
<methodparam><type>Memcache</type><parameter>memcache</parameter></methodparam>
27+
<methodparam><type>string</type><parameter>key</parameter></methodparam>
28+
<methodparam choice="opt"><type>int</type><parameter role="reference">flags</parameter></methodparam>
29+
</methodsynopsis>
30+
<methodsynopsis>
31+
<type>array</type><methodname>memcache_get</methodname>
32+
<methodparam><type>Memcache</type><parameter>memcache</parameter></methodparam>
33+
<methodparam><type>array</type><parameter>keys</parameter></methodparam>
34+
<methodparam choice="opt"><type>array</type><parameter role="reference">flags</parameter></methodparam>
35+
</methodsynopsis>
2436

2537
<para>
2638
<function>Memcache::get</function> retourne les données précédemment stockées

reference/memcache/memcache/getextendedstats.xml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- $Revision$ -->
3-
<!-- EN-Revision: e41806c30bf6975e452c0d4ce35ab0984c2fa68c Maintainer: yannick Status: ready -->
2+
<!-- EN-Revision: 1c3a0a021e0d97acce54fda55f6e941557056afe Maintainer: yannick Status: ready -->
43
<!-- Reviewed: no -->
54

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

@@ -17,14 +17,20 @@
1717
<methodparam choice="opt"><type>int</type><parameter>slabid</parameter></methodparam>
1818
<methodparam choice="opt"><type>int</type><parameter>limit</parameter><initializer>100</initializer></methodparam>
1919
</methodsynopsis>
20+
<methodsynopsis>
21+
<type>array</type><methodname>memcache_get_extended_stats</methodname>
22+
<methodparam><type>Memcache</type><parameter>memcache</parameter></methodparam>
23+
<methodparam choice="opt"><type>string</type><parameter>type</parameter></methodparam>
24+
<methodparam choice="opt"><type>int</type><parameter>slabid</parameter></methodparam>
25+
<methodparam choice="opt"><type>int</type><parameter>limit</parameter><initializer>100</initializer></methodparam>
26+
</methodsynopsis>
2027

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

3036
<note>

reference/memcache/memcache/getserverstatus.xml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- $Revision$ -->
3-
<!-- EN-Revision: 81cff4de7472c88fd3fe7204ed04d0a4d7860aec Maintainer: yannick Status: ready -->
2+
<!-- EN-Revision: 1c3a0a021e0d97acce54fda55f6e941557056afe Maintainer: yannick Status: ready -->
43
<!-- Reviewed: no -->
54

65
<refentry xml:id="memcache.getserverstatus" xmlns="http://docbook.org/ns/docbook">
76
<refnamediv>
87
<refname>Memcache::getServerStatus</refname>
8+
<refname>memcache_get_server_status</refname>
99
<refpurpose>Retourne le statut du serveur</refpurpose>
1010
</refnamediv>
1111

@@ -16,11 +16,16 @@
1616
<methodparam><type>string</type><parameter>host</parameter></methodparam>
1717
<methodparam choice="opt"><type>int</type><parameter>port</parameter><initializer>11211</initializer></methodparam>
1818
</methodsynopsis>
19+
<methodsynopsis>
20+
<type>int</type><methodname>memcache_get_server_status</methodname>
21+
<methodparam><type>Memcache</type><parameter>memcache</parameter></methodparam>
22+
<methodparam><type>string</type><parameter>host</parameter></methodparam>
23+
<methodparam choice="opt"><type>int</type><parameter>port</parameter><initializer>11211</initializer></methodparam>
24+
</methodsynopsis>
1925

2026
<para>
2127
<function>Memcache::getServerStatus</function> retourne le statut
22-
en ligne/hors ligne du serveur. Vous pouvez également utiliser la fonction
23-
<function>memcache_get_server_status</function>.
28+
en ligne/hors ligne du serveur.
2429
</para>
2530

2631
<note>

0 commit comments

Comments
 (0)