NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
## hIncrByFloat ##### Description Increments the value of a hash member by the provided float value 根据HASH表的KEY,为KEY对应的VALUE自增参数VALUE。浮点型##### Parameters *key* *member* *value*: (float) value that will be added to the member's value ##### Return value *FLOAT* the new value ##### Examples ``` <pre class="calibre9">$redis->delete('h'); $redis->hIncrByFloat('h','x', 1.5); /* returns 1.5: h[x] = 1.5 now */ $redis->hIncrByFLoat('h', 'x', 1.5); /* returns 3.0: h[x] = 3.0 now */ $redis->hIncrByFloat('h', 'x', -3.0); /* returns 0.0: h[x] = 0.0 now */ ```