mneme.ks:incr

mneme

ks:incr(key, delta) -> new_value, err

Increment an integer key

Atomically increments the integer stored at key by delta (default 1). If the key does not exist, it is initialized to 0 before incrementing. Returns the new value. Fails with "type mismatch" if the key holds a non-integer type.