IncrByFloat atomically increments key by delta. The return value is the new value after being incremented or an error.
(ctx context.Context, key string, delta float64)
| 221 | |
| 222 | // IncrByFloat atomically increments key by delta. The return value is the new value after being incremented or an error. |
| 223 | func (dm *DMap) IncrByFloat(ctx context.Context, key string, delta float64) (float64, error) { |
| 224 | e := newEnv(ctx) |
| 225 | e.dmap = dm.name |
| 226 | e.key = key |
| 227 | return dm.atomicIncrByFloat(e, delta) |
| 228 | } |