From a2a5b3f4b3fa288fe6ff74b6d7ed18df62c1831c Mon Sep 17 00:00:00 2001 From: Mikko Koppanen Date: Fri, 4 Sep 2009 08:03:59 +0000 Subject: [PATCH] docs for tune method git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@288035 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/tokyo_tyrant/tokyotyrant.xml | 15 ++++ .../tokyo_tyrant/tokyotyrant/connecturi.xml | 2 +- reference/tokyo_tyrant/tokyotyrant/sync.xml | 2 +- reference/tokyo_tyrant/tokyotyrant/tune.xml | 75 +++++++++++++++++++ 4 files changed, 92 insertions(+), 2 deletions(-) create mode 100644 reference/tokyo_tyrant/tokyotyrant/tune.xml diff --git a/reference/tokyo_tyrant/tokyotyrant.xml b/reference/tokyo_tyrant/tokyotyrant.xml index 4c219e9dfd..661a82c11d 100644 --- a/reference/tokyo_tyrant/tokyotyrant.xml +++ b/reference/tokyo_tyrant/tokyotyrant.xml @@ -272,6 +272,13 @@ 2 + + const + integer + TokyoTyrant::RDBT_RECON + 1 + + Methods @@ -524,6 +531,14 @@ + + TokyoTyrant::RDBT_RECON + + Whether to reconnect on connection failure. + It is recommended to have this parameter on for persistent connections + + + TokyoTyrant::RDBXOLCK_REC diff --git a/reference/tokyo_tyrant/tokyotyrant/connecturi.xml b/reference/tokyo_tyrant/tokyotyrant/connecturi.xml index 80d2bdec80..0f7d6e8928 100644 --- a/reference/tokyo_tyrant/tokyotyrant/connecturi.xml +++ b/reference/tokyo_tyrant/tokyotyrant/connecturi.xml @@ -62,7 +62,7 @@ $tt->connectUri("tcp://localhost:1978/")->put("test", "hi"); &reftitle.seealso; - Classname::Method + TokyoTyrant::connect diff --git a/reference/tokyo_tyrant/tokyotyrant/sync.xml b/reference/tokyo_tyrant/tokyotyrant/sync.xml index bbf00582d8..47ddf90650 100644 --- a/reference/tokyo_tyrant/tokyotyrant/sync.xml +++ b/reference/tokyo_tyrant/tokyotyrant/sync.xml @@ -10,7 +10,7 @@ &reftitle.description; - public voidtokyotyrant::sync + public voidTokyoTyrant::sync diff --git a/reference/tokyo_tyrant/tokyotyrant/tune.xml b/reference/tokyo_tyrant/tokyotyrant/tune.xml new file mode 100644 index 0000000000..9d428883f1 --- /dev/null +++ b/reference/tokyo_tyrant/tokyotyrant/tune.xml @@ -0,0 +1,75 @@ + + + + + + TokyoTyrant::tune + Tunes connection values + + + + &reftitle.description; + + public TokyoTyrantTokyoTyrant::tune + floattimeout + intoptions + + + Tunes database connection options. + + + + + &reftitle.parameters; + + + + timeout + + + The objects timeout value (default: 5.0) + + + + + options + + + Bitmask of options to tune. This can be either 0 or TokyoTyrant::RDBT_RECON. + It is recommended not to change the second parameter. + + + + + + + + + &reftitle.returnvalues; + + This method returns a reference to the current object and throws TokyoTyrantException on failure. + + + + + +