Closed artman92 closed 1 year ago
You need to use CDT operations:
op := as.MapIncrementOp(as.DefaultMapPolicy(), "binName", "keyNameInsideMap", 1)
res, err := client.Operate(nil, key, op)
Closing the issue. Don't hesitate to open a new ticket for any questions you may have.
I'd like to implement an incremental counter for map - Right now I am using
My worry is that with too many concurrent queries I want to lock it so that the values will be correct everytime.