cvs: phpdoc /en/reference/memcached/memcached append.xml appendbykey.xml prepend.xml prependbykey.xml
| From: | Andrei Zmievski | Date: | Wed, 04 Feb 2009 00:19:34 +0000 |
| Subject: | cvs: phpdoc /en/reference/memcached/memcached append.xml appendbykey.xml prepend.xml prependbykey.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-3141@lists.php.net to get a copy of this message | ||
andrei Wed Feb 4 00:19:34 2009 UTC
Modified files:
/phpdoc/en/reference/memcached/memcached append.xml appendbykey.xml
prepend.xml
prependbykey.xml
Log:
Document append* and prepend* methods.
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/memcached/memcached/append.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/memcached/memcached/append.xml diff -u phpdoc/en/reference/memcached/memcached/append.xml:1.1 phpdoc/en/reference/memcached/memcached/append.xml:1.2 --- phpdoc/en/reference/memcached/memcached/append.xml:1.1 Fri Jan 30 00:04:29 2009 +++ phpdoc/en/reference/memcached/memcached/append.xml Wed Feb 4 00:19:34 2009 @@ -1,23 +1,33 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xml:id="memcached.append" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Memcached::append</refname> - <refpurpose>The append purpose</refpurpose> + <refpurpose>Append data to an existing item</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <modifier>public</modifier> <type>void</type><methodname>Memcached::append</methodname> + <modifier>public</modifier> <type>bool</type><methodname>Memcached::append</methodname> <methodparam><type>string</type><parameter>key</parameter></methodparam> <methodparam><type>string</type><parameter>value</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>expiration</parameter></methodparam> </methodsynopsis> <para> - The method description goes here. + <function>Memcached::append</function> appends the given + <parameter>value</parameter> string to the value of an existing item. The + reason that <parameter>value</parameter> is forced to be a string is + that appending mixed types is not well-defined. </para> + <note> + <para> + If the <constant>Memcached::OPT_COMPRESSION</constant> is enabled, the + operation will fail and a warning will be issued, because appending + compressed data to a value that is potentially already compressed is not + possible. + </para> + </note> </refsect1> <refsect1 role="parameters"> @@ -28,7 +38,7 @@ <term><parameter>key</parameter></term> <listitem> <para> - Description... + The key of the item to append the data to. </para> </listitem> </varlistentry> @@ -36,15 +46,7 @@ <term><parameter>value</parameter></term> <listitem> <para> - Description... - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>expiration</parameter></term> - <listitem> - <para> - Description... + The string to append. </para> </listitem> </varlistentry> @@ -55,7 +57,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Description... + &return.success; + The <methodname>Memcached::getResultCode</methodname> will return + <constant>Memcached::RES_NOTSTORED</constant> if the key does not exist. </para> </refsect1> @@ -67,14 +71,20 @@ <programlisting role="php"> <![CDATA[ <?php -/* ... */ +$m = new Memcached(); +$m->addServer('localhost', 11211); +$m->setOption(Memcached::OPT_COMPRESSION, false); + +$m->set('foo', 'abc'); +$m->append('foo', 'def'); +var_dump($m->get('foo')); ?> ]]> </programlisting> - &example.outputs.similar; + &example.outputs; <screen> <![CDATA[ -... +string(6) "abcdef" ]]> </screen> </example> @@ -85,7 +95,8 @@ &reftitle.seealso; <para> <simplelist> - <member><methodname>Classname::Method</methodname></member> + <member><methodname>Memcached::appendByKey</methodname></member> + <member><methodname>Memcached::prepend</methodname></member> </simplelist> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/memcached/memcached/appendbykey.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/memcached/memcached/appendbykey.xml diff -u phpdoc/en/reference/memcached/memcached/appendbykey.xml:1.1 phpdoc/en/reference/memcached/memcached/appendbykey.xml:1.2 --- phpdoc/en/reference/memcached/memcached/appendbykey.xml:1.1 Fri Jan 30 00:04:29 2009 +++ phpdoc/en/reference/memcached/memcached/appendbykey.xml Wed Feb 4 00:19:34 2009 @@ -1,23 +1,25 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xml:id="memcached.appendbykey" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Memcached::appendByKey</refname> - <refpurpose>The appendByKey purpose</refpurpose> + <refpurpose>Append data to an existing item on a specific server</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <modifier>public</modifier> <type>void</type><methodname>Memcached::appendByKey</methodname> + <modifier>public</modifier> <type>bool</type><methodname>Memcached::appendByKey</methodname> <methodparam><type>string</type><parameter>server_key</parameter></methodparam> <methodparam><type>string</type><parameter>key</parameter></methodparam> <methodparam><type>string</type><parameter>value</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>expiration</parameter></methodparam> </methodsynopsis> <para> - The method description goes here. + <function>Memcached::appendByKey</function> is functionally equivalent to + <methodname>Memcached::append</methodname>, except that the free-form + <parameter>server_key</parameter> can be used to map the + <parameter>key</parameter> to a specific server. </para> </refsect1> @@ -29,7 +31,7 @@ <term><parameter>server_key</parameter></term> <listitem> <para> - Description... + The key identifying the server where the item is. </para> </listitem> </varlistentry> @@ -37,7 +39,7 @@ <term><parameter>key</parameter></term> <listitem> <para> - Description... + The key of the item to append the data to. </para> </listitem> </varlistentry> @@ -45,15 +47,7 @@ <term><parameter>value</parameter></term> <listitem> <para> - Description... - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>expiration</parameter></term> - <listitem> - <para> - Description... + The string to append. </para> </listitem> </varlistentry> @@ -64,29 +58,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Description... - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title><function>Memcached::appendByKey</function> example</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* ... */ -?> -]]> - </programlisting> - &example.outputs.similar; - <screen> -<![CDATA[ -... -]]> - </screen> - </example> + &return.success; + The <methodname>Memcached::getResultCode</methodname> will return + <constant>Memcached::RES_NOTSTORED</constant> if the key does not exist. </para> </refsect1> @@ -94,7 +68,8 @@ &reftitle.seealso; <para> <simplelist> - <member><methodname>Classname::Method</methodname></member> + <member><methodname>Memcached::append</methodname></member> + <member><methodname>Memcached::prepend</methodname></member> </simplelist> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/memcached/memcached/prepend.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/memcached/memcached/prepend.xml diff -u phpdoc/en/reference/memcached/memcached/prepend.xml:1.1 phpdoc/en/reference/memcached/memcached/prepend.xml:1.2 --- phpdoc/en/reference/memcached/memcached/prepend.xml:1.1 Fri Jan 30 00:04:29 2009 +++ phpdoc/en/reference/memcached/memcached/prepend.xml Wed Feb 4 00:19:34 2009 @@ -1,23 +1,33 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xml:id="memcached.prepend" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Memcached::prepend</refname> - <refpurpose>The prepend purpose</refpurpose> + <refpurpose>Prepend data to an existing item</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <modifier>public</modifier> <type>void</type><methodname>Memcached::prepend</methodname> + <modifier>public</modifier> <type>bool</type><methodname>Memcached::prepend</methodname> <methodparam><type>string</type><parameter>key</parameter></methodparam> <methodparam><type>string</type><parameter>value</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>expiration</parameter></methodparam> </methodsynopsis> <para> - The method description goes here. + <function>Memcached::prepend</function> prepends the given + <parameter>value</parameter> string to the value of an existing item. The + reason that <parameter>value</parameter> is forced to be a string is + that prepending mixed types is not well-defined. </para> + <note> + <para> + If the <constant>Memcached::OPT_COMPRESSION</constant> is enabled, the + operation will fail and a warning will be issued, because prepending + compressed data to a value that is potentially already compressed is not + possible. + </para> + </note> </refsect1> <refsect1 role="parameters"> @@ -28,7 +38,7 @@ <term><parameter>key</parameter></term> <listitem> <para> - Description... + The key of the item to prepend the data to. </para> </listitem> </varlistentry> @@ -36,15 +46,7 @@ <term><parameter>value</parameter></term> <listitem> <para> - Description... - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>expiration</parameter></term> - <listitem> - <para> - Description... + The string to prepend. </para> </listitem> </varlistentry> @@ -55,7 +57,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Description... + &return.success; + The <methodname>Memcached::getResultCode</methodname> will return + <constant>Memcached::RES_NOTSTORED</constant> if the key does not exist. </para> </refsect1> @@ -67,14 +71,20 @@ <programlisting role="php"> <![CDATA[ <?php -/* ... */ +$m = new Memcached(); +$m->addServer('localhost', 11211); +$m->setOption(Memcached::OPT_COMPRESSION, false); + +$m->set('foo', 'abc'); +$m->prepend('foo', 'def'); +var_dump($m->get('foo')); ?> ]]> </programlisting> - &example.outputs.similar; + &example.outputs; <screen> <![CDATA[ -... +string(6) "defabc" ]]> </screen> </example> @@ -85,7 +95,8 @@ &reftitle.seealso; <para> <simplelist> - <member><methodname>Classname::Method</methodname></member> + <member><methodname>Memcached::prependByKey</methodname></member> + <member><methodname>Memcached::append</methodname></member> </simplelist> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/memcached/memcached/prependbykey.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/memcached/memcached/prependbykey.xml diff -u phpdoc/en/reference/memcached/memcached/prependbykey.xml:1.1 phpdoc/en/reference/memcached/memcached/prependbykey.xml:1.2 --- phpdoc/en/reference/memcached/memcached/prependbykey.xml:1.1 Fri Jan 30 00:04:29 2009 +++ phpdoc/en/reference/memcached/memcached/prependbykey.xml Wed Feb 4 00:19:34 2009 @@ -1,23 +1,25 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xml:id="memcached.prependbykey" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Memcached::prependByKey</refname> - <refpurpose>The prependByKey purpose</refpurpose> + <refpurpose>Prepend data to an existing item on a specific server</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <modifier>public</modifier> <type>void</type><methodname>Memcached::prependByKey</methodname> + <modifier>public</modifier> <type>bool</type><methodname>Memcached::prependByKey</methodname> <methodparam><type>string</type><parameter>server_key</parameter></methodparam> <methodparam><type>string</type><parameter>key</parameter></methodparam> <methodparam><type>string</type><parameter>value</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>expiration</parameter></methodparam> </methodsynopsis> <para> - The method description goes here. + <function>Memcached::prependByKey</function> is functionally equivalent to + <methodname>Memcached::prepend</methodname>, except that the free-form + <parameter>server_key</parameter> can be used to map the + <parameter>key</parameter> to a specific server. </para> </refsect1> @@ -29,7 +31,7 @@ <term><parameter>server_key</parameter></term> <listitem> <para> - Description... + The key identifying the server where the item is. </para> </listitem> </varlistentry> @@ -37,7 +39,7 @@ <term><parameter>key</parameter></term> <listitem> <para> - Description... + The key of the item to prepend the data to. </para> </listitem> </varlistentry> @@ -45,15 +47,7 @@ <term><parameter>value</parameter></term> <listitem> <para> - Description... - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>expiration</parameter></term> - <listitem> - <para> - Description... + The string to prepend. </para> </listitem> </varlistentry> @@ -64,29 +58,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Description... - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title><function>Memcached::prependByKey</function> example</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* ... */ -?> -]]> - </programlisting> - &example.outputs.similar; - <screen> -<![CDATA[ -... -]]> - </screen> - </example> + &return.success; + The <methodname>Memcached::getResultCode</methodname> will return + <constant>Memcached::RES_NOTSTORED</constant> if the key does not exist. </para> </refsect1> @@ -94,7 +68,8 @@ &reftitle.seealso; <para> <simplelist> - <member><methodname>Classname::Method</methodname></member> + <member><methodname>Memcached::prepend</methodname></member> + <member><methodname>Memcached::append</methodname></member> </simplelist> </para> </refsect1>
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/memcached/memcached/append.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/memcached/memcached/append.xml diff -u phpdoc/en/reference/memcached/memcached/append.xml:1.1 phpdoc/en/reference/memcached/memcached/append.xml:1.2 --- phpdoc/en/reference/memcached/memcached/append.xml:1.1 Fri Jan 30 00:04:29 2009 +++ phpdoc/en/reference/memcached/memcached/append.xml Wed Feb 4 00:19:34 2009 @@ -1,23 +1,33 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xml:id="memcached.append" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Memcached::append</refname> - <refpurpose>The append purpose</refpurpose> + <refpurpose>Append data to an existing item</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <modifier>public</modifier> <type>void</type><methodname>Memcached::append</methodname> + <modifier>public</modifier> <type>bool</type><methodname>Memcached::append</methodname> <methodparam><type>string</type><parameter>key</parameter></methodparam> <methodparam><type>string</type><parameter>value</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>expiration</parameter></methodparam> </methodsynopsis> <para> - The method description goes here. + <function>Memcached::append</function> appends the given + <parameter>value</parameter> string to the value of an existing item. The + reason that <parameter>value</parameter> is forced to be a string is + that appending mixed types is not well-defined. </para> + <note> + <para> + If the <constant>Memcached::OPT_COMPRESSION</constant> is enabled, the + operation will fail and a warning will be issued, because appending + compressed data to a value that is potentially already compressed is not + possible. + </para> + </note> </refsect1> <refsect1 role="parameters"> @@ -28,7 +38,7 @@ <term><parameter>key</parameter></term> <listitem> <para> - Description... + The key of the item to append the data to. </para> </listitem> </varlistentry> @@ -36,15 +46,7 @@ <term><parameter>value</parameter></term> <listitem> <para> - Description... - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>expiration</parameter></term> - <listitem> - <para> - Description... + The string to append. </para> </listitem> </varlistentry> @@ -55,7 +57,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Description... + &return.success; + The <methodname>Memcached::getResultCode</methodname> will return + <constant>Memcached::RES_NOTSTORED</constant> if the key does not exist. </para> </refsect1> @@ -67,14 +71,20 @@ <programlisting role="php"> <![CDATA[ <?php -/* ... */ +$m = new Memcached(); +$m->addServer('localhost', 11211); +$m->setOption(Memcached::OPT_COMPRESSION, false); + +$m->set('foo', 'abc'); +$m->append('foo', 'def'); +var_dump($m->get('foo')); ?> ]]> </programlisting> - &example.outputs.similar; + &example.outputs; <screen> <![CDATA[ -... +string(6) "abcdef" ]]> </screen> </example> @@ -85,7 +95,8 @@ &reftitle.seealso; <para> <simplelist> - <member><methodname>Classname::Method</methodname></member> + <member><methodname>Memcached::appendByKey</methodname></member> + <member><methodname>Memcached::prepend</methodname></member> </simplelist> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/memcached/memcached/appendbykey.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/memcached/memcached/appendbykey.xml diff -u phpdoc/en/reference/memcached/memcached/appendbykey.xml:1.1 phpdoc/en/reference/memcached/memcached/appendbykey.xml:1.2 --- phpdoc/en/reference/memcached/memcached/appendbykey.xml:1.1 Fri Jan 30 00:04:29 2009 +++ phpdoc/en/reference/memcached/memcached/appendbykey.xml Wed Feb 4 00:19:34 2009 @@ -1,23 +1,25 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xml:id="memcached.appendbykey" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Memcached::appendByKey</refname> - <refpurpose>The appendByKey purpose</refpurpose> + <refpurpose>Append data to an existing item on a specific server</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <modifier>public</modifier> <type>void</type><methodname>Memcached::appendByKey</methodname> + <modifier>public</modifier> <type>bool</type><methodname>Memcached::appendByKey</methodname> <methodparam><type>string</type><parameter>server_key</parameter></methodparam> <methodparam><type>string</type><parameter>key</parameter></methodparam> <methodparam><type>string</type><parameter>value</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>expiration</parameter></methodparam> </methodsynopsis> <para> - The method description goes here. + <function>Memcached::appendByKey</function> is functionally equivalent to + <methodname>Memcached::append</methodname>, except that the free-form + <parameter>server_key</parameter> can be used to map the + <parameter>key</parameter> to a specific server. </para> </refsect1> @@ -29,7 +31,7 @@ <term><parameter>server_key</parameter></term> <listitem> <para> - Description... + The key identifying the server where the item is. </para> </listitem> </varlistentry> @@ -37,7 +39,7 @@ <term><parameter>key</parameter></term> <listitem> <para> - Description... + The key of the item to append the data to. </para> </listitem> </varlistentry> @@ -45,15 +47,7 @@ <term><parameter>value</parameter></term> <listitem> <para> - Description... - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>expiration</parameter></term> - <listitem> - <para> - Description... + The string to append. </para> </listitem> </varlistentry> @@ -64,29 +58,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Description... - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title><function>Memcached::appendByKey</function> example</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* ... */ -?> -]]> - </programlisting> - &example.outputs.similar; - <screen> -<![CDATA[ -... -]]> - </screen> - </example> + &return.success; + The <methodname>Memcached::getResultCode</methodname> will return + <constant>Memcached::RES_NOTSTORED</constant> if the key does not exist. </para> </refsect1> @@ -94,7 +68,8 @@ &reftitle.seealso; <para> <simplelist> - <member><methodname>Classname::Method</methodname></member> + <member><methodname>Memcached::append</methodname></member> + <member><methodname>Memcached::prepend</methodname></member> </simplelist> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/memcached/memcached/prepend.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/memcached/memcached/prepend.xml diff -u phpdoc/en/reference/memcached/memcached/prepend.xml:1.1 phpdoc/en/reference/memcached/memcached/prepend.xml:1.2 --- phpdoc/en/reference/memcached/memcached/prepend.xml:1.1 Fri Jan 30 00:04:29 2009 +++ phpdoc/en/reference/memcached/memcached/prepend.xml Wed Feb 4 00:19:34 2009 @@ -1,23 +1,33 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xml:id="memcached.prepend" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Memcached::prepend</refname> - <refpurpose>The prepend purpose</refpurpose> + <refpurpose>Prepend data to an existing item</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <modifier>public</modifier> <type>void</type><methodname>Memcached::prepend</methodname> + <modifier>public</modifier> <type>bool</type><methodname>Memcached::prepend</methodname> <methodparam><type>string</type><parameter>key</parameter></methodparam> <methodparam><type>string</type><parameter>value</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>expiration</parameter></methodparam> </methodsynopsis> <para> - The method description goes here. + <function>Memcached::prepend</function> prepends the given + <parameter>value</parameter> string to the value of an existing item. The + reason that <parameter>value</parameter> is forced to be a string is + that prepending mixed types is not well-defined. </para> + <note> + <para> + If the <constant>Memcached::OPT_COMPRESSION</constant> is enabled, the + operation will fail and a warning will be issued, because prepending + compressed data to a value that is potentially already compressed is not + possible. + </para> + </note> </refsect1> <refsect1 role="parameters"> @@ -28,7 +38,7 @@ <term><parameter>key</parameter></term> <listitem> <para> - Description... + The key of the item to prepend the data to. </para> </listitem> </varlistentry> @@ -36,15 +46,7 @@ <term><parameter>value</parameter></term> <listitem> <para> - Description... - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>expiration</parameter></term> - <listitem> - <para> - Description... + The string to prepend. </para> </listitem> </varlistentry> @@ -55,7 +57,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Description... + &return.success; + The <methodname>Memcached::getResultCode</methodname> will return + <constant>Memcached::RES_NOTSTORED</constant> if the key does not exist. </para> </refsect1> @@ -67,14 +71,20 @@ <programlisting role="php"> <![CDATA[ <?php -/* ... */ +$m = new Memcached(); +$m->addServer('localhost', 11211); +$m->setOption(Memcached::OPT_COMPRESSION, false); + +$m->set('foo', 'abc'); +$m->prepend('foo', 'def'); +var_dump($m->get('foo')); ?> ]]> </programlisting> - &example.outputs.similar; + &example.outputs; <screen> <![CDATA[ -... +string(6) "defabc" ]]> </screen> </example> @@ -85,7 +95,8 @@ &reftitle.seealso; <para> <simplelist> - <member><methodname>Classname::Method</methodname></member> + <member><methodname>Memcached::prependByKey</methodname></member> + <member><methodname>Memcached::append</methodname></member> </simplelist> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/memcached/memcached/prependbykey.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/memcached/memcached/prependbykey.xml diff -u phpdoc/en/reference/memcached/memcached/prependbykey.xml:1.1 phpdoc/en/reference/memcached/memcached/prependbykey.xml:1.2 --- phpdoc/en/reference/memcached/memcached/prependbykey.xml:1.1 Fri Jan 30 00:04:29 2009 +++ phpdoc/en/reference/memcached/memcached/prependbykey.xml Wed Feb 4 00:19:34 2009 @@ -1,23 +1,25 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xml:id="memcached.prependbykey" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Memcached::prependByKey</refname> - <refpurpose>The prependByKey purpose</refpurpose> + <refpurpose>Prepend data to an existing item on a specific server</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <modifier>public</modifier> <type>void</type><methodname>Memcached::prependByKey</methodname> + <modifier>public</modifier> <type>bool</type><methodname>Memcached::prependByKey</methodname> <methodparam><type>string</type><parameter>server_key</parameter></methodparam> <methodparam><type>string</type><parameter>key</parameter></methodparam> <methodparam><type>string</type><parameter>value</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>expiration</parameter></methodparam> </methodsynopsis> <para> - The method description goes here. + <function>Memcached::prependByKey</function> is functionally equivalent to + <methodname>Memcached::prepend</methodname>, except that the free-form + <parameter>server_key</parameter> can be used to map the + <parameter>key</parameter> to a specific server. </para> </refsect1> @@ -29,7 +31,7 @@ <term><parameter>server_key</parameter></term> <listitem> <para> - Description... + The key identifying the server where the item is. </para> </listitem> </varlistentry> @@ -37,7 +39,7 @@ <term><parameter>key</parameter></term> <listitem> <para> - Description... + The key of the item to prepend the data to. </para> </listitem> </varlistentry> @@ -45,15 +47,7 @@ <term><parameter>value</parameter></term> <listitem> <para> - Description... - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>expiration</parameter></term> - <listitem> - <para> - Description... + The string to prepend. </para> </listitem> </varlistentry> @@ -64,29 +58,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Description... - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title><function>Memcached::prependByKey</function> example</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* ... */ -?> -]]> - </programlisting> - &example.outputs.similar; - <screen> -<![CDATA[ -... -]]> - </screen> - </example> + &return.success; + The <methodname>Memcached::getResultCode</methodname> will return + <constant>Memcached::RES_NOTSTORED</constant> if the key does not exist. </para> </refsect1> @@ -94,7 +68,8 @@ &reftitle.seealso; <para> <simplelist> - <member><methodname>Classname::Method</methodname></member> + <member><methodname>Memcached::prepend</methodname></member> + <member><methodname>Memcached::append</methodname></member> </simplelist> </para> </refsect1>