Method: Redis::Commands::Hashes#hincrbyfloat
- Defined in:
- lib/redis/commands/hashes.rb
#hincrbyfloat(key, field, increment) ⇒ Float
Increment the numeric value of a hash field by the given float number.
186 187 188 |
# File 'lib/redis/commands/hashes.rb', line 186 def hincrbyfloat(key, field, increment) send_command([:hincrbyfloat, key, field, Float(increment)], &Floatify) end |