Function

increment

Atomically increment the value associated with the key in the store by the given (signed) delta, returning the new value. A negative delta decrements, where decrement is just a negative increment, rather than wasi:keyvalue's unsigned-only counter.

increment: async func(bucket: borrow​<bucket>, key: string, delta: s64) -> result​<s64, error>;