svn: /phpdoc/en/trunk/reference/tokyo_tyrant/ tokyotyrant/connecturi.xml tokyotyrant/sync.xml tokyotyrant/tune.xml tokyotyrant.xml
| From: | Mikko Koppanen | Date: | Fri, 04 Sep 2009 08:03:59 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/tokyo_tyrant/ tokyotyrant/connecturi.xml tokyotyrant/sync.xml tokyotyrant/tune.xml tokyotyrant.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-4830@lists.php.net to get a copy of this message | ||
mkoppanen Fri, 04 Sep 2009 08:03:59 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=288035
Log:
docs for tune method
Changed paths:
U phpdoc/en/trunk/reference/tokyo_tyrant/tokyotyrant/connecturi.xml
U phpdoc/en/trunk/reference/tokyo_tyrant/tokyotyrant/sync.xml
A phpdoc/en/trunk/reference/tokyo_tyrant/tokyotyrant/tune.xml
U phpdoc/en/trunk/reference/tokyo_tyrant/tokyotyrant.xml
Modified: phpdoc/en/trunk/reference/tokyo_tyrant/tokyotyrant/connecturi.xml
===================================================================
--- phpdoc/en/trunk/reference/tokyo_tyrant/tokyotyrant/connecturi.xml 2009-09-04 07:59:48 UTC (rev
288034)
+++ phpdoc/en/trunk/reference/tokyo_tyrant/tokyotyrant/connecturi.xml 2009-09-04 08:03:59 UTC (rev
288035)
@@ -62,7 +62,7 @@
&reftitle.seealso;
<para>
<simplelist>
- <member><methodname>Classname::Method</methodname></member>
+ <member><methodname>TokyoTyrant::connect</methodname></member>
</simplelist>
</para>
</refsect1>
Modified: phpdoc/en/trunk/reference/tokyo_tyrant/tokyotyrant/sync.xml
===================================================================
--- phpdoc/en/trunk/reference/tokyo_tyrant/tokyotyrant/sync.xml 2009-09-04 07:59:48 UTC (rev 288034)
+++ phpdoc/en/trunk/reference/tokyo_tyrant/tokyotyrant/sync.xml 2009-09-04 08:03:59 UTC (rev 288035)
@@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <modifier>public</modifier>
<type>void</type><methodname>tokyotyrant::sync</methodname>
+ <modifier>public</modifier>
<type>void</type><methodname>TokyoTyrant::sync</methodname>
<void />
</methodsynopsis>
<para>
Added: phpdoc/en/trunk/reference/tokyo_tyrant/tokyotyrant/tune.xml
===================================================================
--- phpdoc/en/trunk/reference/tokyo_tyrant/tokyotyrant/tune.xml (rev 0)
+++ phpdoc/en/trunk/reference/tokyo_tyrant/tokyotyrant/tune.xml 2009-09-04 08:03:59 UTC (rev 288035)
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 287587 $ -->
+
+<refentry xml:id="tokyotyrant.putnr" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
+ <refnamediv>
+ <refname>TokyoTyrant::tune</refname>
+ <refpurpose>Tunes connection values</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <modifier>public</modifier>
<type>TokyoTyrant</type><methodname>TokyoTyrant::tune</methodname>
+
<methodparam><type>float</type><parameter>timeout</parameter></methodparam>
+ <methodparam
choice="opt"><type>int</type><parameter>options</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ Tunes database connection options.
+ </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ <varlistentry>
+ <term><parameter>timeout</parameter></term>
+ <listitem>
+ <para>
+ The objects timeout value (default: 5.0)
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>options</parameter></term>
+ <listitem>
+ <para>
+ Bitmask of options to tune. This can be either 0 or
<constant>TokyoTyrant::RDBT_RECON</constant>.
+ It is recommended not to change the second parameter.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ This method returns a reference to the current object and throws TokyoTyrantException on
failure.
+ </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
+-->
Modified: phpdoc/en/trunk/reference/tokyo_tyrant/tokyotyrant.xml
===================================================================
--- phpdoc/en/trunk/reference/tokyo_tyrant/tokyotyrant.xml 2009-09-04 07:59:48 UTC (rev 288034)
+++ phpdoc/en/trunk/reference/tokyo_tyrant/tokyotyrant.xml 2009-09-04 08:03:59 UTC (rev 288035)
@@ -272,6 +272,13 @@
<initializer>2</initializer>
</fieldsynopsis>
+ <fieldsynopsis>
+ <modifier>const</modifier>
+ <type>integer</type>
+ <varname
linkend="tokyotyrant.constants.RDBT_RECON">TokyoTyrant::RDBT_RECON</varname>
+ <initializer>1</initializer>
+ </fieldsynopsis>
+
<classsynopsisinfo role="comment">Methods</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook)
xpointer(id('class.tokyotyrant')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])"
/>
</classsynopsis>
@@ -524,6 +531,14 @@
</listitem>
</varlistentry>
+ <varlistentry xml:id="tokyotyrant.constants.RDBT_RECON">
+ <term><constant>TokyoTyrant::RDBT_RECON</constant></term>
+ <listitem>
+ <para>Whether to reconnect on connection failure.
+ It is recommended to have this parameter on for persistent connections</para>
+ </listitem>
+ </varlistentry>
+
<varlistentry xml:id="tokyotyrant.constants.RDBXOLCK_REC">
<term><constant>TokyoTyrant::RDBXOLCK_REC</constant></term>
<listitem>