diff options
author | Nicolas Favre-Felix <n.favrefelix@gmail.com> | 2010-09-20 19:33:59 +0400 |
---|---|---|
committer | Nicolas Favre-Felix <n.favrefelix@gmail.com> | 2010-09-20 19:33:59 +0400 |
commit | c67e2ddf7405e827435cad1d14cc06eb96811a84 (patch) | |
tree | d81700d92cb75679d15be1de586a91c2ecd69109 /README.markdown | |
parent | a8738d7e49a8e2a42654821e98ee063a9b734137 (diff) |
Re-added HMGET + doc & unit tests.
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 16 |
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> |