From b2a101c786e1ef17d6241e53aa4de39e27697e88 Mon Sep 17 00:00:00 2001 From: Andrei Zmievski Date: Tue, 3 Feb 2009 19:12:56 +0000 Subject: [PATCH] replace* docs git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@275113 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/memcached/memcached/replace.xml | 50 ++++++----------- .../memcached/memcached/replacebykey.xml | 54 +++++++------------ 2 files changed, 37 insertions(+), 67 deletions(-) diff --git a/reference/memcached/memcached/replace.xml b/reference/memcached/memcached/replace.xml index bc62f2b6bd..c0df267c9e 100644 --- a/reference/memcached/memcached/replace.xml +++ b/reference/memcached/memcached/replace.xml @@ -1,22 +1,24 @@ - + Memcached::replace - The replace purpose + Replace data under an existing key &reftitle.description; - public voidMemcached::replace + public boolMemcached::replace stringkey - stringvalue - stringexpiration + mixedvalue + intexpiration - The method description goes here. + Memcached::replace is similar to + Memcached::set, but the operation fails if the + key does not exist on the server. @@ -28,7 +30,7 @@ key - Description... + The key under which to store the value. @@ -36,7 +38,7 @@ value - Description... + The value to store. @@ -44,7 +46,7 @@ expiration - Description... + The expiration time of the value, as a Unix timestamp. @@ -55,29 +57,9 @@ &reftitle.returnvalues; - Description... - - - - - &reftitle.examples; - - - <function>Memcached::replace</function> example - - -]]> - - &example.outputs.similar; - - - - + &return.success; + The Memcached::getResultCode will return + Memcached::RES_NOTSTORED if the key does not exist. @@ -85,7 +67,9 @@ &reftitle.seealso; - Classname::Method + Memcached::replaceByKey + Memcached::set + Memcached::add diff --git a/reference/memcached/memcached/replacebykey.xml b/reference/memcached/memcached/replacebykey.xml index 6c5cf8147f..8c81fb02ff 100644 --- a/reference/memcached/memcached/replacebykey.xml +++ b/reference/memcached/memcached/replacebykey.xml @@ -1,23 +1,27 @@ - + Memcached::replaceByKey - The replaceByKey purpose + Replace data under an existing key on a specific server &reftitle.description; - public voidMemcached::replaceByKey + public boolMemcached::replaceByKey stringserver_key stringkey - stringvalue - stringexpiration + mixedvalue + intexpiration - The method description goes here. + Memcached::replaceByKey is functionally equivalent to + Memcached::replace, except that the free-form + server_key can be used to map the + key to a specific server. This is useful if you need + to keep a bunch of related keys on a certain server. @@ -29,7 +33,7 @@ server_key - Description... + The key identifying the server to store the value on. @@ -37,7 +41,7 @@ key - Description... + The key under which to store the value. @@ -45,7 +49,7 @@ value - Description... + The value to store. @@ -53,7 +57,7 @@ expiration - Description... + The expiration time of the value, as a Unix timestamp. @@ -64,29 +68,9 @@ &reftitle.returnvalues; - Description... - - - - - &reftitle.examples; - - - <function>Memcached::replaceByKey</function> example - - -]]> - - &example.outputs.similar; - - - - + &return.success; + The Memcached::getResultCode will return + Memcached::RES_NOTSTORED if the key does not exist. @@ -94,7 +78,9 @@ &reftitle.seealso; - Classname::Method + Memcached::replace + Memcached::set + Memcached::add