MCPcopy
hub / github.com/olric-data/olric / IncrByFloat

Method IncrByFloat

internal/dmap/atomic.go:223–228  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

221
222// IncrByFloat atomically increments key by delta. The return value is the new value after being incremented or an error.
223func (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}

Callers 1

Implementers 2

ClusterDMapcluster_client.go
EmbeddedDMapembedded_client.go

Calls 2

atomicIncrByFloatMethod · 0.95
newEnvFunction · 0.85

Tested by 1