Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Favre-Felix <n.favrefelix@gmail.com>2010-09-20 19:33:59 +0400
committerNicolas Favre-Felix <n.favrefelix@gmail.com>2010-09-20 19:33:59 +0400
commitc67e2ddf7405e827435cad1d14cc06eb96811a84 (patch)
treed81700d92cb75679d15be1de586a91c2ecd69109 /README.markdown
parenta8738d7e49a8e2a42654821e98ee063a9b734137 (diff)
Re-added HMGET + doc & unit tests.
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown16
1 files changed, 16 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown
index 049ad38d..27a711ac 100644
--- a/README.markdown
+++ b/README.markdown
@@ -1780,3 +1780,19 @@ $redis->delete('user:1');
$redis->hMset('user:1', array('name' => 'Joe', 'salary' => 2000));
$redis->hIncrBy('user:1', 'salary', 100); // Joe earns 100 more now.
</pre>
+
+## hMGet
+##### Description
+Retirieve the values associated to the specified fields in the hash.
+##### Parameters
+*key*
+*memberKeys* Array
+##### Return value
+*Array* An array of elements, the values of the specified fields in the hash, with the hash keys as array keys.
+##### Examples
+<pre>
+$redis->delete('h');
+$redis->hSet('h', 'field1', 'value1');
+$redis->hSet('h', 'field2', 'value2');
+$redis->hmGet('h', array('field1', 'field2')); /* returns array('field1' => 'value1', 'field2' => 'value2') */
+</pre>