🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## hMset ##### Description Fills in a whole hash. Non-string values are converted to string, using the standard `<span class="calibre12">(string)</span>` cast. NULL values are stored as empty strings. 批量填充HASH表。不是字符串类型的VALUE,自动转换成字符串类型。使用标准的值。NULL值将被储存为一个空的字符串。 ##### Parameters *key* *members*: key → value array ##### Return value *BOOL* ##### Examples ``` <pre class="calibre9">$redis->delete('user:1'); $redis->hMset('user:1', array('name' => 'Joe', 'salary' => 2000)); $redis->hIncrBy('user:1', 'salary', 100); // Joe earns 100 more now. ``` ##