代潇瑞博客

hMGet 命令/方法/函数

Retrieve the values associated to the specified fields in the hash.

批量取得HASH表中的VALUE。


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

$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') */

【相关命令】

触屏版 | 电脑版

Copyright © 2013 代潇瑞博客手机版

QQ: 446673330

粤ICP备13071969号-1