From dfc350e8c507cee6257fad6e85bbca4d154e722e Mon Sep 17 00:00:00 2001 From: Andrei Zmievski Date: Tue, 3 Feb 2009 19:37:15 +0000 Subject: [PATCH] setMulti* docs. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@275117 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/memcached/memcached/setmulti.xml | 40 +++++++++------- .../memcached/memcached/setmultibykey.xml | 48 +++++++------------ 2 files changed, 40 insertions(+), 48 deletions(-) diff --git a/reference/memcached/memcached/setmulti.xml b/reference/memcached/memcached/setmulti.xml index eafbd6c54c..ef69958c6d 100644 --- a/reference/memcached/memcached/setmulti.xml +++ b/reference/memcached/memcached/setmulti.xml @@ -1,21 +1,25 @@ - + Memcached::setMulti - The setMulti purpose + Store multiple sets of data &reftitle.description; - public voidMemcached::setMulti + public boolMemcached::setMulti arrayentries - stringexpiration + intexpiration - The method description goes here. + Memcached::setMulti is similar to + Memcached::set, but instead of a single key/value + pair, it works on multiple sets specified in + entries. The expiration + time applies to all the entries at once. @@ -27,7 +31,7 @@ entries - Description... + An array of key/value pairs to store on the server. @@ -35,7 +39,7 @@ expiration - Description... + The expiration time of the entries, as a Unix timestamp. @@ -46,7 +50,8 @@ &reftitle.returnvalues; - Description... + &return.success; + Use Memcached::getResultCode if necessary. @@ -58,16 +63,18 @@ addServer('localhost', 11211); + +$entries = array( + 'key1' => 'value1', + 'key2' => 'value2', + 'key3' => 'value3' +); +$m->set($entries, time() + 300); ?> ]]> - &example.outputs.similar; - - - @@ -76,7 +83,8 @@ &reftitle.seealso; - Classname::Method + Memcached::setMultiByKey + Memcached::set diff --git a/reference/memcached/memcached/setmultibykey.xml b/reference/memcached/memcached/setmultibykey.xml index 24f5b1c395..916a31e211 100644 --- a/reference/memcached/memcached/setmultibykey.xml +++ b/reference/memcached/memcached/setmultibykey.xml @@ -1,22 +1,26 @@ - + Memcached::setMultiByKey - The setMultiByKey purpose + Store multiple sets of data on a specific server &reftitle.description; - public voidMemcached::setMultiByKey + public boolMemcached::setMultiByKey stringserver_key arrayentries - stringexpiration + intexpiration - The method description goes here. + Memcached::setMultiByKey is functionally equivalent to + Memcached::setMulti, except that the free-form + server_key can be used to map the keys from + entries to a specific server. This is useful if you + need to keep a bunch of related keys on a certain server. @@ -28,7 +32,7 @@ server_key - Description... + The key identifying the server to store the items on. @@ -36,7 +40,7 @@ entries - Description... + An array of key/value pairs to store on the server. @@ -44,7 +48,7 @@ expiration - Description... + The expiration time of the entries, as a Unix timestamp. @@ -55,29 +59,8 @@ &reftitle.returnvalues; - Description... - - - - - &reftitle.examples; - - - <function>Memcached::setMultiByKey</function> example - - -]]> - - &example.outputs.similar; - - - - + &return.success; + Use Memcached::getResultCode if necessary. @@ -85,7 +68,8 @@ &reftitle.seealso; - Classname::Method + Memcached::setMulti + Memcached::set